Skip to content
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

PERF: get_dummies #56089

Merged
merged 3 commits into from Nov 21, 2023
Merged

PERF: get_dummies #56089

merged 3 commits into from Nov 21, 2023

Conversation

lukemanley
Copy link
Member

from asv_bench.benchmarks.reshape import GetDummies

b = GetDummies()
b.setup()

%timeit b.time_get_dummies_1d()

# 106 ms ± 4.77 ms per loop (mean ± std. dev. of 7 runs, 10 loops each)  <- main
# 17 ms ± 1.58 ms per loop (mean ± std. dev. of 7 runs, 10 loops each)   <- PR

@lukemanley lukemanley added Performance Memory or execution speed performance Reshaping Concat, Merge/Join, Stack/Unstack, Explode labels Nov 20, 2023
@lukemanley lukemanley added this to the 2.2 milestone Nov 20, 2023
@mroeschke mroeschke merged commit 6a8370e into pandas-dev:main Nov 21, 2023
40 checks passed
@mroeschke
Copy link
Member

Nice thanks @lukemanley

phofl pushed a commit to phofl/pandas that referenced this pull request Nov 21, 2023
* improve perf of get_dummies

* whatsnew

* mypy
@lukemanley lukemanley deleted the perf-get-dummies branch November 22, 2023 01:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Performance Memory or execution speed performance Reshaping Concat, Merge/Join, Stack/Unstack, Explode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants