Skip to content

CLN: Pass numpy args as kwargs #33789

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 1 commit into from
Apr 25, 2020
Merged

CLN: Pass numpy args as kwargs #33789

merged 1 commit into from
Apr 25, 2020

Conversation

dsaxton
Copy link
Member

@dsaxton dsaxton commented Apr 25, 2020

This is already done in some places for PandasArray, e.g., min / max, and seems cleaner with less boilerplate

Comment on lines +259 to +263
PROD_DEFAULTS = STAT_FUNC_DEFAULTS.copy()
PROD_DEFAULTS["axis"] = None
PROD_DEFAULTS["keepdims"] = False
PROD_DEFAULTS["initial"] = None

Copy link
Member Author

Choose a reason for hiding this comment

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

Small nitpick but it feels more clear to modify these separately / explicitly rather than updating both dicts with a single assignment

@jreback jreback added the Clean label Apr 25, 2020
@jreback jreback added this to the 1.1 milestone Apr 25, 2020
@jreback jreback merged commit e82c0c6 into pandas-dev:master Apr 25, 2020
@jreback
Copy link
Contributor

jreback commented Apr 25, 2020

thanks

@dsaxton dsaxton deleted the clean-pandas-array branch April 25, 2020 22:00
rhshadrach pushed a commit to rhshadrach/pandas that referenced this pull request May 10, 2020
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.

2 participants