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

keep only observed combinations in aggregate #242

Merged
merged 4 commits into from
Nov 16, 2023
Merged

Conversation

jmoralez
Copy link
Member

@jmoralez jmoralez commented Oct 17, 2023

Adds observed=True to the groupby that aggregates the series in the aggregate function so that the output has only the observed combinations in case the columns are categoricals.

@jmoralez jmoralez added the fix label Oct 17, 2023
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@jmoralez jmoralez changed the title keep only observed categories in aggregate keep only observed combinations in aggregate Oct 17, 2023
Copy link
Member

@AzulGarza AzulGarza left a comment

Choose a reason for hiding this comment

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

Nice @jmoralez!

@jmoralez jmoralez merged commit 45145c8 into main Nov 16, 2023
17 checks passed
@jmoralez jmoralez deleted the observed-categoricals branch November 16, 2023 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants