Skip to content
New issue

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

Incompatible with pandas >= 1.5.0 due to SettingWithCopyWarning #89

Closed
SorooshMani-NOAA opened this issue Sep 23, 2022 · 0 comments · Fixed by #102
Closed

Incompatible with pandas >= 1.5.0 due to SettingWithCopyWarning #89

SorooshMani-NOAA opened this issue Sep 23, 2022 · 0 comments · Fixed by #102
Assignees
Labels
bug Something isn't working

Comments

@SorooshMani-NOAA
Copy link
Collaborator

SorooshMani-NOAA commented Sep 23, 2022

Pandas new version has moved the class to a new location, it should be imported as:

from pandas.errors import SettingWithCopyWarning

The error in EnsemblePerturbation:

2022-09-23T13:57:14.885421+00:00  INFO     File "/home/ondemand-user/icogsc/lib/python3.9/site-packages/ensembleperturbation/perturbation/atcf.py", line 22, in <module>
2022-09-23T13:57:14.885463+00:00  INFO     from pandas.core.common import SettingWithCopyWarning
2022-09-23T13:57:14.885506+00:00  INFO     ImportError: cannot import name 'SettingWithCopyWarning' from 'pandas.core.common' (/home/ondemand-user/icogsc/lib/python3.9/site-packages/pandas/core/common.py)

Also check for other incompatibilities
After the fix revert 33141b8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant