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

Support pandas >= 2 #77

Closed
SorooshMani-NOAA opened this issue Apr 21, 2023 · 0 comments · Fixed by #79
Closed

Support pandas >= 2 #77

SorooshMani-NOAA opened this issue Apr 21, 2023 · 0 comments · Fixed by #79
Assignees

Comments

@SorooshMani-NOAA
Copy link
Collaborator

SorooshMani-NOAA commented Apr 21, 2023

Right now some tests fail in #76 due to stormevents not supporting the latest pandas version. For specifics see:

#76 (comment)

Also this update from https://pandas.pydata.org/docs/whatsnew/v2.0.0.html is causing an issue:

  • Changed behavior in setting values with df.loc[:, foo] = bar or df.iloc[:, foo] = bar, these now always attempt to set values inplace before falling back to casting (GH45333)

This results in the following line to fail to change column data type (assuming datatype is originall float):

df.loc[:, 'a'] = df.loc[:, 'a'].astype(int)
@SorooshMani-NOAA SorooshMani-NOAA self-assigned this Apr 21, 2023
@SorooshMani-NOAA SorooshMani-NOAA linked a pull request Apr 25, 2023 that will close this issue
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 a pull request may close this issue.

1 participant