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

take shallow copy on dataframe processing and fix get_cmap deprecation #617

Merged
merged 2 commits into from
Aug 23, 2023

Conversation

jmoralez
Copy link
Member

@jmoralez jmoralez commented Aug 22, 2023

The DataFrameProcessing class always re-assigns the ds column, which can raise the SettingwithCopyWarning when passing subsets of pandas dataframes to it (for example in the plot function), so this takes a shallow copy before that.
Also the matplotlib.pyplot.cm.get_cmap function is being deprecated, so this replaces it with the recommended usage (the resampled method was added in 3.6)

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Copy link
Member

@AzulGarza AzulGarza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @jmoralez! LGTM :)

@AzulGarza AzulGarza merged commit 2cc53b6 into main Aug 23, 2023
16 checks passed
@AzulGarza AzulGarza deleted the fix/copy-and-cmap branch August 23, 2023 18:14
@jmoralez jmoralez added the fix label Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants