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

Optimize Frame.AggregateRowsBy #469

Merged
merged 2 commits into from
Apr 24, 2019
Merged

Optimize Frame.AggregateRowsBy #469

merged 2 commits into from
Apr 24, 2019

Conversation

zyzhu
Copy link
Contributor

@zyzhu zyzhu commented Apr 23, 2019

Address #269
The current performance bottleneck is in getting labels by rows.

Typical cases in using Frame.AggregateRowsBy has data frame with way more rows than columns. Switching to getting labels by columns yields a 3x speed improvement in a test case of 100000 rows.

Didn't change the row index to group keys as it will be a breaking change. Will consider it next time as it's more in line with what pandas does.

Needs to fix the breaking performance test to document speed different among different versions in the future.

@zyzhu zyzhu merged commit 39e095c into fslaborg:master Apr 24, 2019
@zyzhu zyzhu deleted the issue-269 branch November 13, 2019 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant