Skip to content

Conversation

mortada
Copy link
Contributor

@mortada mortada commented Apr 18, 2015

...licates optional, fixes #9927

@jreback
Copy link
Contributor

jreback commented Apr 20, 2015

@mortada ok, for now pls take out the raise_on_duplicates kw and leave the rest.

expected = Categorical(list("abc"), categories=list("abcd"), ordered=True)
self.assert_categorical_equal(res, expected)

# with Series or np.array
Copy link
Contributor

Choose a reason for hiding this comment

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

test reg Index & list as well

@mortada
Copy link
Contributor Author

mortada commented Apr 21, 2015

@jreback it's updated

jreback added a commit that referenced this pull request Apr 21, 2015
Allow add_categories() to accept Series/np.array and make raising on dup...
@jreback jreback merged commit 7d550ef into pandas-dev:master Apr 21, 2015
@jreback
Copy link
Contributor

jreback commented Apr 21, 2015

@mortada thanks!

@mortada mortada deleted the add_categories branch April 22, 2015 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Design Bug Categorical Categorical Data Type
Projects
None yet
Development

Successfully merging this pull request may close these issues.

API/BUG: awkward syntax to add categories to a Categorical
2 participants