Skip to content

BUG: encoding of categoricals in hdf serialization #10889

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 2 commits into from
Aug 28, 2015

Conversation

jreback
Copy link
Contributor

@jreback jreback commented Aug 22, 2015

closes #10366
replaces #10454

@jreback jreback added Bug IO HDF5 read_hdf, HDFStore Categorical Categorical Data Type labels Aug 22, 2015
@jreback jreback added this to the 0.17.0 milestone Aug 22, 2015
@jreback
Copy link
Contributor Author

jreback commented Aug 22, 2015

cc @cottrell

I changed this a bit to explicity check for bytes, and doced this a bit.

Seems ok to me, but can you check for

@@ -765,3 +765,4 @@ Bug Fixes
- Bug in ``read_msgpack`` where encoding is not respected (:issue:`10580`)
- Bug preventing access to the first index when using ``iloc`` with a list containing the appropriate negative integer (:issue:`10547`, :issue:`10779`)
- Bug in ``TimedeltaIndex`` formatter causing error while trying to save ``DataFrame`` with ``TimedeltaIndex`` using ``to_csv`` (:issue:`10833`)
- Bug in ``Categorical`` hdf serialiation in presence of alternate encodings. (:issue:`10366`)
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo in serialization

@jreback jreback force-pushed the cottrell-categ_hdf branch from ea50146 to c589faf Compare August 26, 2015 01:19
@cottrell
Copy link
Contributor

nosetests -v pandas.io.tests.test_pytables passed on my local python 3.4.3 build. I see other errors popping up as in the travis tests.

@jreback jreback force-pushed the cottrell-categ_hdf branch from c589faf to 8609f6c Compare August 27, 2015 23:33
jreback added a commit that referenced this pull request Aug 28, 2015
BUG: encoding of categoricals in hdf serialization
@jreback jreback merged commit f44c490 into pandas-dev:master Aug 28, 2015
@jreback
Copy link
Contributor Author

jreback commented Aug 28, 2015

thanks @cottrell

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Categorical Categorical Data Type IO HDF5 read_hdf, HDFStore
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Irregular errors when reading certain categorical strings from hdf
3 participants