Skip to content

BUG: concat on axis=0 with categorical (GH10177) #10179

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 1 commit into from
Jun 27, 2015
Merged

BUG: concat on axis=0 with categorical (GH10177) #10179

merged 1 commit into from
Jun 27, 2015

Conversation

sebp
Copy link

@sebp sebp commented May 20, 2015

Contains a proposed fix for #10177

@@ -2929,6 +2929,23 @@ def test_pickle_v0_15_2(self):
#
self.assert_categorical_equal(cat, pd.read_pickle(pickle_path))

def test_concat_categorical(self):
df1 = pd.DataFrame(np.arange(18).reshape(6, 3), columns=["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.

add the issue number as a comment here

@jreback jreback added Bug Categorical Categorical Data Type labels May 21, 2015
@sebp
Copy link
Author

sebp commented May 26, 2015

@jreback: I implemented your suggested changes and it seems that it doesn't break anything else, at least according to the unit tests.

@sebp
Copy link
Author

sebp commented Jun 25, 2015

I rebased the changes against latest master. The Travis CI error is due to a timeout when creating the build environment, not sure how I can resolve it.

@jreback jreback added this to the 0.17.0 milestone Jun 26, 2015
@jreback
Copy link
Contributor

jreback commented Jun 26, 2015

pls rebase and squash.

@@ -78,3 +78,5 @@ Bug Fixes
- Bug in ``ExcelReader`` when worksheet is empty (:issue:`6403`)
- Bug in ``Table.select_column`` where name is not preserved (:issue:`10392`)
- Bug in ``DataFrame.interpolate`` with ``axis=1`` and ``inplace=True`` (:issue:`10395`)
- Bug in `pandas.concat` with ``axis=0`` when column is of dtype category (:issue:`10177`)
Copy link
Contributor

Choose a reason for hiding this comment

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

use double back ticks around category

@sebp
Copy link
Author

sebp commented Jun 27, 2015

@jreback: I updated my merge request based on your feedback.

jreback added a commit that referenced this pull request Jun 27, 2015
BUG: concat on axis=0 with categorical (GH10177)
@jreback jreback merged commit c97238c into pandas-dev:master Jun 27, 2015
@jreback
Copy link
Contributor

jreback commented Jun 27, 2015

@sebp thanks!

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