-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BENCH: Add rolling apply benchmarks #28566
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
BENCH: Add rolling apply benchmarks #28566
Conversation
@@ -25,6 +25,25 @@ def peakmem_rolling(self, constructor, window, dtype, method): | |||
getattr(self.roll, method)() | |||
|
|||
|
|||
class Apply: | |||
params = ( | |||
["DataFrame", "Series"], |
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.
any reason not to just put (pd.DataFrame, pd.Series)
and avoid the getattr
?
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.
It was the nicest way to have it label nicely in the params
and not be an if/else
in the setup
. Plus the getattr
is in the setup
so it won't impact the benchmark time.
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.
lgtm
* BENCH: Add rolling apply benchmarks * black
* BENCH: Add rolling apply benchmarks * black
* BENCH: Add rolling apply benchmarks * black
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff