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


##########
python/pyspark/sql/classic/dataframe.py:
##########
@@ -1942,6 +1942,16 @@ def _test() -> None:
     # It inherits docstrings but doctests cannot detect them so we run
     # the parent classe's doctests here directly.
     globs = pyspark.sql.dataframe.__dict__.copy()
+
+    try:
+        import pandas as pd
+        import pyarrow as pa
+    except Exception:
+        del pyspark.sql.dataframe.DataFrame.toArrow.__doc__

Review Comment:
   skip these tests, if pandas/pyarrow not installed



-- 
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-unsubscr...@spark.apache.org

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


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

Reply via email to