You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2022/09/30 01:51:35 UTC

[GitHub] [spark] zhengruifeng commented on a diff in pull request #38042: [SPARK-40606][PS][TEST] Eliminate `to_pandas` warnings in test

zhengruifeng commented on code in PR #38042:
URL: https://github.com/apache/spark/pull/38042#discussion_r984143444


##########
python/pyspark/pandas/tests/data_type_ops/test_binary_ops.py:
##########
@@ -152,7 +152,7 @@ def test_from_to_pandas(self):
         data = [b"1", b"2", b"3"]
         pser = pd.Series(data)
         psser = ps.Series(data)
-        self.assert_eq(pser, psser.to_pandas())
+        self.assert_eq(pser, psser._to_pandas())

Review Comment:
   the only difference between `to_pandas()` and `_to_pandas()` is the [warning](https://github.com/apache/spark/blob/7e5a87f0128a7679490b89294ac75e8af0856d1f/python/pyspark/pandas/frame.py#L5406-L5409).



-- 
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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org