Skip to content

ENH: Add axis=None for statistical methods #46815

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

Closed
wants to merge 2 commits into from

Conversation

romedina15
Copy link

Issue #43889. Adding axis=None option for statistical methods: .min, .max, .median, and .mean.

@pep8speaks
Copy link

pep8speaks commented Apr 20, 2022

Hello @romedina15! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2022-04-20 22:27:50 UTC

@phofl phofl changed the title Issue 43889. ENH: Add axis=None for statistical methods Apr 22, 2022
if axis is None and level is None and self.ndim > 1 and numeric_only:
# user must have explictly passed axis=None and numeric_only=True
# Converting to numpy array since using numpy statistical methods
arr = self.to_numpy()
Copy link
Member

Choose a reason for hiding this comment

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

Does this work with EA dtypes?

Copy link
Member

@phofl phofl left a comment

Choose a reason for hiding this comment

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

pre-commit is failing. You can run pre-commit locally to debug the issue

@github-actions
Copy link
Contributor

This pull request is stale because it has been open for thirty days with no activity. Please update and respond to this comment if you're still interested in working on this.

@github-actions github-actions bot added the Stale label May 23, 2022
@mroeschke
Copy link
Member

Thanks for the pull request, but it appears to have gone stale. If interested in contributing, please merge in the main branch, address any review comments and/or failing tests, and we can reopen.

@mroeschke mroeschke closed this Jun 3, 2022
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.

4 participants