Skip to content

BUG: Fixed union_categoricals with unordered cats #19097

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
merged 3 commits into from
Jan 7, 2018

Conversation

TomAugspurger
Copy link
Contributor

Closes #19096

@TomAugspurger TomAugspurger added this to the 0.23.0 milestone Jan 5, 2018
@TomAugspurger TomAugspurger added Bug Categorical Categorical Data Type labels Jan 5, 2018
c1 = Categorical(['a', 'b', 'c'], categories=['a', 'b', 'c'])
c2 = Categorical(['a', 'b', 'c'], categories=['b', 'a', 'c'])
result = union_categoricals([c1, c2])
expected = Categorical(['a', 'b', 'c', 'a', 'b', 'c'],
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe add the concat example too?

@codecov
Copy link

codecov bot commented Jan 6, 2018

Codecov Report

Merging #19097 into master will increase coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #19097      +/-   ##
==========================================
+ Coverage   91.51%   91.54%   +0.02%     
==========================================
  Files         148      148              
  Lines       48754    48757       +3     
==========================================
+ Hits        44619    44634      +15     
+ Misses       4135     4123      -12
Flag Coverage Δ
#multiple 89.91% <100%> (+0.02%) ⬆️
#single 41.61% <50%> (-0.01%) ⬇️
Impacted Files Coverage Δ
pandas/core/dtypes/concat.py 99.14% <100%> (+0.01%) ⬆️
pandas/plotting/_converter.py 66.95% <0%> (+1.73%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bbfbe48...61fad8a. Read the comment docs.

@jreback
Copy link
Contributor

jreback commented Jan 6, 2018

lgtm. ping on green.

@jreback jreback merged commit b1a9421 into pandas-dev:master Jan 7, 2018
@TomAugspurger TomAugspurger deleted the union-categorical-unequal branch January 9, 2018 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Categorical Categorical Data Type
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants