itholic opened a new pull request, #44675: URL: https://github.com/apache/spark/pull/44675
### What changes were proposed in this pull request? This PR proposes to remove Pandas dependency for `pyspark.testing`. ### Why are the changes needed? `pyspark.testing.assertDataFrameEqual` and `pyspark.testing.assertSchemaEqual` should not dependent on Pandas, but currently they are: ```python >>> from pyspark.testing import assertDataFrameEqual AttributeError: module 'pandas' has no attribute '__version__' ``` ### Does this PR introduce _any_ user-facing change? No API changes, but importing `pyspark.testing.assertDataFrameEqual` and `pyspark.testing.assertSchemaEqual` without Pandas installation would not raise any exception. ### How was this patch tested? Manually test. ### Was this patch authored or co-authored using generative AI tooling? No. -- 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]
