Skip to content
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

Column multi-index not restored correctly on load from HDF5 table #4815

Closed
willrc opened this issue Sep 11, 2013 · 2 comments
Closed

Column multi-index not restored correctly on load from HDF5 table #4815

willrc opened this issue Sep 11, 2013 · 2 comments
Labels
Bug IO Data IO issues that don't fit into a more specific label
Milestone

Comments

@willrc
Copy link

willrc commented Sep 11, 2013

v 0.12.0

cols = pd.MultiIndex.from_tuples([(1,2), (3,4)])
data = pd.DataFrame(index=[1,2,3], columns=cols, dtype=float)
data.values.fill(0.)

s = store('/tmp/test', mode='a')
s.append('mi_frame', data)

reloaded = s['mi_frame'] # also applies to s.select...
print type(data.columns)
Out: pandas.core.index.MultiIndex

print type(reloaded.columns)
Out: pandas.core.index.Index

It's easy enough to re-convert upon reload, but would be nice not to have to

@jreback
Copy link
Contributor

jreback commented Sep 11, 2013

this was closed by #3749 for issue #3748 thanks for the report!

@jreback jreback closed this as completed Sep 11, 2013
@jreback
Copy link
Contributor

jreback commented Sep 11, 2013

so it works in master / 0.13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug IO Data IO issues that don't fit into a more specific label
Projects
None yet
Development

No branches or pull requests

2 participants