Skip to content

Conversation

@Samecho
Copy link

@Samecho Samecho commented Oct 21, 2025

Addresses the AttributeError caused by the removal of np.NaN in NumPy 2.0.

This PR replaces all deprecated np.NaN instances with the correct np.nan throughout the src directory, in src/ydata_profiling/model/spark/describe_numeric_spark.py.

This update ensures compatibility with NumPy >= 2.0.

Fixes #1770

@Samecho Samecho changed the title Fix: replace np.NaN with np.nan for NumPy 2.0 compatibility fix: replace np.NaN with np.nan for NumPy 2.0 compatibility Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AttributeError: np.NaN was removed in the NumPy 2.0 release. Use np.nan instead.

1 participant