Skip to content

Conversation

@mroeschke
Copy link
Member

  • tests added / passed
  • passes black pandas
  • passes git diff upstream/master -u -- "*.py" | flake8 --diff
@mroeschke mroeschke added Benchmark Performance (ASV) benchmarks Window rolling, ewma, expanding labels Sep 22, 2019

class Apply:
params = (
["DataFrame", "Series"],
Copy link
Member

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?

Copy link
Member Author

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.

Copy link
Member

@WillAyd WillAyd left a comment

Choose a reason for hiding this comment

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

lgtm

@WillAyd WillAyd added this to the 1.0 milestone Sep 22, 2019
@mroeschke mroeschke merged commit 1285938 into pandas-dev:master Sep 23, 2019
@mroeschke mroeschke deleted the add_rolling_apply_benchmarks branch September 23, 2019 00:06
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
* BENCH: Add rolling apply benchmarks * black
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
* BENCH: Add rolling apply benchmarks * black
bongolegend pushed a commit to bongolegend/pandas that referenced this pull request Jan 1, 2020
* BENCH: Add rolling apply benchmarks * black
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Benchmark Performance (ASV) benchmarks Window rolling, ewma, expanding

4 participants