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

feat: add prop arg to fct_lump #195

Merged
merged 1 commit into from
Feb 13, 2020
Merged

feat: add prop arg to fct_lump #195

merged 1 commit into from
Feb 13, 2020

Conversation

machow
Copy link
Owner

@machow machow commented Feb 13, 2020

enables the following.

from siuba.dply.forcats import fct_lump

fct_lump(['a', 'a', 'b', 'b', 'c', 'd'], prop = .2)

output:

[a, a, b, b, Other, Other]
Categories (3, object): [b, a, Other]

@machow machow merged commit 887cc87 into master Feb 13, 2020
@machow machow deleted the feat-fct-lump-prop branch February 13, 2020 16:46
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