Skip to content

Fixing the code sample in pandas/core/categorical.py #10358

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

Conversation

anushshetty
Copy link

Fix for #10356

@@ -183,6 +183,7 @@ class Categorical(PandasObject):
Categories (3, object): [a < b < c]

>>> a = Categorical(['a','b','c','a','b','c'], ['c', 'b', 'a'])
>>> a = a.as_ordered()
Copy link
Contributor

Choose a reason for hiding this comment

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

just passed ordered=True to the constructor

@jreback jreback added Docs Categorical Categorical Data Type labels Jun 15, 2015
@jreback
Copy link
Contributor

jreback commented Aug 19, 2015

closed by 3e35c84

@jreback jreback closed this Aug 19, 2015
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.

2 participants