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

updated pandas mean calculation for new mean() numeric_only default value in pandas 1.5.0 #68

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

victormvy
Copy link

Pandas changed the behaviour of the numeric_only argument of the pandas.DataFrame.mean in v1.5.0. Prior to that version, the default behaviour was to try to compute the mean in all the columns and then try only in numeric columns. Now, it tries to compute the mean using all the columns and raises an error if not numeric columns are found.

The code has been modified to compute the mean only in the required numeric columns.

@amphioxus
Copy link

Thanks! This helped me get some old code that uses tukey_hsd() to run again.

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.

2 participants