Skip to content

Generalize groupby to support more than two columns#196

Merged
steveoni merged 1 commit intojavascriptdata:masterfrom
sponsfreixes:many_column_grouby
May 8, 2021
Merged

Generalize groupby to support more than two columns#196
steveoni merged 1 commit intojavascriptdata:masterfrom
sponsfreixes:many_column_grouby

Conversation

@sponsfreixes
Copy link
Copy Markdown

This PR aims to provide better support for grouping by more than two columns.

The previous code explicitly checked if we were dealing with one or two columns, and ran different code branches depending on that. The proposed change treats both cases with the same code (no branching), and would do the same for any number of columns.

I do not consider the support for more than two columns finished with this PR because I didn't add any new tests for more than two columns. But I think that the PR is still a good contribution because it doesn't break the existing tests for one and two columns, and provides a better starting point for adding new tests for more columns and, in case of bugs, hopefully they should be localized fixes and not a major refactor.

Related issue: #162

@steveoni
Copy link
Copy Markdown
Member

steveoni commented May 5, 2021

@sponsfreixes this looks awesome. I will clone this branch and test for more than two-columns. Thanks 👍

@steveoni steveoni merged commit 9ef8935 into javascriptdata:master May 8, 2021
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.

2 participants