We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the main branch of pandas.
ImportError: cannot import name 'NaN' from 'numpy'
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
Hey OP, thanks for raising this issue! Just a heads up, NaN is not a directly importable attribute from numpy. You can use np.nan instead:
import numpy as np print(np.nan)
or
from numpy import nan print(nan)
This isn’t a bug, so I’ll close this. If you’re still running into issues, feel free to reopen or provide more context.
No branches or pull requests
Pandas version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
Issue Description
ImportError: cannot import name 'NaN' from 'numpy'
Expected Behavior
ImportError: cannot import name 'NaN' from 'numpy'
Installed Versions
ImportError: cannot import name 'NaN' from 'numpy'
The text was updated successfully, but these errors were encountered: