Skip to content

ENH: Add unique and nunique to GroupBy whitelist #6147

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

Merged

Conversation

bburan-galenea
Copy link
Contributor

Series.unique and Series.nunique are useful methods for querying the
unique elements (or number of unique elements) in each group when used
in conjunction with DataFrame.GroupBy. This commit addresses
closes #6146.

Series.unique and Series.nunique are useful methods for querying the
unique elements (or number of unique elements) in each group when used
in conjunction with DataFrame.GroupBy.  This commit addresses
pandas-dev#6146.
@jreback
Copy link
Contributor

jreback commented Jan 28, 2014

pls add in tests/test_groupby.py as well (for the whitelist tests)

@bburan-galenea
Copy link
Contributor Author

Ok, I added the tests as well. Let me know if everything looks ok.

jreback added a commit that referenced this pull request Jan 28, 2014
…ique

ENH: Add unique and nunique to GroupBy whitelist
@jreback jreback merged commit a67c3cd into pandas-dev:master Jan 28, 2014
@jreback
Copy link
Contributor

jreback commented Jan 28, 2014

thanks for this!

@bburan-galenea bburan-galenea deleted the bburan/groupby-series-unique branch January 30, 2014 16:14
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.

Add nunique and unique to series apply whitelist
2 participants