Skip to content

Notes about unique vs cat.categories #12278 #12421

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

Closed
wants to merge 1 commit into from
Closed

Notes about unique vs cat.categories #12278 #12421

wants to merge 1 commit into from

Conversation

Dorozhko-Anton
Copy link
Contributor

@TomAugspurger TomAugspurger added Docs Categorical Categorical Data Type labels Feb 22, 2016
@TomAugspurger TomAugspurger added this to the 0.18.0 milestone Feb 22, 2016
@@ -182,6 +182,19 @@ It's also possible to pass in the categories in a specific order:
indicate an ordered ``Categorical``.


.. note::

Pay attention! Result of ``.unique()`` not always the same as ``Series.cat.categories``,
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't need the "Pay attention". Add a "The" before "result". Let's change .unique() to Series.unique() to make that a bit clearer.

Copy link
Contributor

Choose a reason for hiding this comment

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

dont' say 'Pay attention!', you can do a ::warning:: if you want, but a note is just fine.

The results of .unique() are not always the same as .categories.....

Copy link
Contributor

Choose a reason for hiding this comment

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

@TomAugspurger hah, I think we say it at the same time!

fix note, add indent to code example

fix typo
@jreback jreback closed this in 6b544de Feb 23, 2016
@jreback
Copy link
Contributor

jreback commented Feb 23, 2016

thanks @Dorozhko-Anton

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Categorical Categorical Data Type Docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Performance: .unique / .nunique of categorical series slow on large data set
4 participants