zhengruifeng commented on code in PR #46602: URL: https://github.com/apache/spark/pull/46602#discussion_r1602430705
########## python/pyspark/pandas/frame.py: ########## @@ -491,7 +491,8 @@ class DataFrame(Frame, Generic[T]): >>> import pandas as pd >>> sdf = spark.createDataFrame([("Data", 1), ("Bricks", 2)], ["x", "y"]) - >>> ps.DataFrame(data=sdf, index=pd.Index([0, 1, 2])) + >>> with ps.option_context("compute.ops_on_diff_frames", False): + ... ps.DataFrame(data=sdf, index=pd.Index([0, 1, 2])) Review Comment: I am not sure, @HyukjinKwon wdyt? -- 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