Skip to content

CLN: clean-up numpy/function.py #52648

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

Merged
merged 3 commits into from
Apr 13, 2023

Conversation

topper-123
Copy link
Contributor

Some simplifications in numpy/functions.py

"median": validate_median,
"mean": validate_mean,
"min": validate_min,
"max": validate_max,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note that in main, the validate_mean, validate_min and validate_max were not used.

Copy link
Member

Choose a reason for hiding this comment

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

if they're not used, let's delete them

Copy link
Contributor Author

@topper-123 topper-123 Apr 13, 2023

Choose a reason for hiding this comment

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

Sorry, I wasn't precise, what I meant was that they weren't used here. They are used elsewhere and it makes sense to use them here also to ensure the same API for same-named methods .

@mroeschke mroeschke added this to the 2.1 milestone Apr 13, 2023
@mroeschke mroeschke merged commit 5799de2 into pandas-dev:main Apr 13, 2023
@mroeschke
Copy link
Member

Thanks @topper-123

@topper-123 topper-123 deleted the cln_numpy_function branch April 14, 2023 05:04
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.

3 participants