Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
ENH: union_categorical enhancements #13410
Comments
jreback
added Reshaping API Design Categorical
labels
Jun 9, 2016
jreback
added this to the
0.18.2
milestone
Jun 9, 2016
|
I think the location is fine. This mostly is part of a developer/extender API, e.g. used internally by other parts of pandas and other packages (e.g. dask), rather than in an of itself useful to a regular user. |
|
+1 for adding a |
This was referenced Jun 23, 2016
jreback
added a commit
that referenced
this issue
Jul 29, 2016
|
|
sinhrks + jreback |
59f2557
|
jreback
modified the milestone: 0.19.0, Next Major Release
Sep 28, 2016
|
It was #14199, but yes - I edited the top comment. |
js3711
commented
Jan 19, 2017
•
|
@jreback @janschulz
|
|
Setup In [15]: c1 = pd.Categorical(['a', 'a', 'b'], categories=['b', 'a', 'c'], ordered=True)
In [16]: c2 = pd.Categorical(['b', 'b', 'a'])
In [17]: union_categoricals([c1, c2])
TypeError: Categorical.ordered must be the sameFor your first question - the idea would be to allow this In [18]: union_categoricals([c1, c2], ignore_order=True)
[a, a, b, b, b, a]
Categories (3, object): [b, a, c]On your second question - not sure if there's complete agreement on the API, but assuming there is a |
|
the |
js3711
referenced
this issue
Jan 25, 2017
Closed
ENH union_categoricals supports ignore_order GH13410 #15219
js3711
commented
Jan 25, 2017
|
Thank you all for the comments. I have made an attempt at a pull request to support the ignore_order argument. #15219 I will hold off on from_union until there is agreement on the API change. |
jreback
added a commit
that referenced
this issue
Feb 22, 2017
|
|
+ jreback |
14fee4f
|
|
so to close this issue, I think we need to add |
makmanalp
referenced
this issue
in dask/dask
Mar 17, 2017
Closed
The Joy and Agony of Categorical Types #1040
AnkurDedania
added a commit
to AnkurDedania/pandas
that referenced
this issue
Mar 21, 2017
|
|
+ AnkurDedania |
1a0599d
|
jreback commentedJun 9, 2016
•
edited
xref #13361
Series/CategoricalIndexas well asCategorical#14199ignore_orderto ignore the raising on an ordered Categorical (and just have it work) #15219pdnamespace (or change its name). ConsiderCategorical.from_union(...)