After importing the following PySpark library, I am encountering the error:
import pyspark.pandas as ps
Error: Internal Error: AttributeError: np.NaN
was removed in the NumPy 2.0 release. Use np.nan
instead.
I am already using np.nan
in my code and have also tried downgrading NumPy to version 1.26.4, but the issue persists.
Has anyone encountered a similar problem or found a solution?