-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
CLN: enable pylint's redefined-outer-name in pandas/core/resample.py #49724
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
CLN: enable pylint's redefined-outer-name in pandas/core/resample.py #49724
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @calhockemeyer for working on this
pandas/core/resample.py
Outdated
_add_downsample_kernel(method, ()) | ||
for method in ["nunique"]: | ||
_add_downsample_kernel(method, (), SeriesGroupBy) | ||
for mthd in ["sum", "prod", "min", "max", "first", "last"]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would _method
work? as it's just used in the loop
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that makes sense. Changed mthd
to _method
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @calhockemeyer
…andas-dev#49724) * Rename "method" to "mthd" in outer scope * Change mthd to _method
…andas-dev#49724) * Rename "method" to "mthd" in outer scope * Change mthd to _method
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.