ueshin commented on a change in pull request #33752:
URL: https://github.com/apache/spark/pull/33752#discussion_r700456001
##########
File path: python/pyspark/pandas/tests/test_series.py
##########
@@ -2905,6 +2905,21 @@ def test_combine_first(self):
self.assert_eq(psser1.combine_first(psser2),
pser1.combine_first(pser2))
+ def test_cov_of_series_in_same_frame(self):
+ pser = pd.DataFrame(
Review comment:
nit: shall we use `pdf` for pandas DataFrame?
##########
File path: python/pyspark/pandas/tests/test_series.py
##########
@@ -2905,6 +2905,21 @@ def test_combine_first(self):
self.assert_eq(psser1.combine_first(psser2),
pser1.combine_first(pser2))
+ def test_cov_of_series_in_same_frame(self):
+ pser = pd.DataFrame(
+ {
+ "s1": [0.90010907, 0.13484424, 0.62036035],
+ "s2": [0.12528585, 0.26962463, 0.51111198],
+ },
+ index=[0, 1, 2],
+ )
+
+ pcov = pser["s1"].cov(pser["s2"])
+
+ psser = ps.from_pandas(pser)
Review comment:
ditto: `psdf` for pandas-on-Spark DataFrame?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]