itholic opened a new pull request, #44745: URL: https://github.com/apache/spark/pull/44745
### What changes were proposed in this pull request? This PR proposes to check Pandas installation properly ### Why are the changes needed? Checking Pandas installation is not working correctly, but raising improper exception when Pandas is not installed. ### Does this PR introduce _any_ user-facing change? No API change, but user-facing error message is now showing proper error message to guide: **Before** ``` >>> import pyspark.pandas AttributeError: module 'pandas' has no attribute '__version__' ``` **After** ``` >>> import pyspark.pandas pyspark.errors.exceptions.base.PySparkImportError: [PACKAGE_NOT_INSTALLED] Pandas >= 1.4.4 must be installed; however, it was not found. ``` ### How was this patch tested? Manually tested ### 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]
