HyukjinKwon commented on code in PR #44745:
URL: https://github.com/apache/spark/pull/44745#discussion_r1452849859
##########
python/pyspark/sql/pandas/utils.py:
##########
@@ -27,7 +27,11 @@ def require_minimum_pandas_version() -> None:
try:
import pandas
- have_pandas = True
+ if hasattr(pandas, "__version__"):
+ have_pandas = True
+ else:
+ have_pandas = False
+ raised_error = None
Review Comment:
It works to me without the fix:
```
>>> import pyspark.pandas
...
>>>
```
The problem is when you run the tests in PyCharm, it tries to import
`pandas` under `pyspark`. I think we should find another way to work around
this.
--
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]