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

BUG: select_column does not preserve the column name #10392

Closed
jreback opened this issue Jun 19, 2015 · 0 comments · Fixed by #10401
Closed

BUG: select_column does not preserve the column name #10392

jreback opened this issue Jun 19, 2015 · 0 comments · Fixed by #10401
Labels
Bug IO HDF5 read_hdf, HDFStore
Milestone

Comments

@jreback
Copy link
Contributor

jreback commented Jun 19, 2015

In [4]: df = DataFrame({'A' : np.random.randn(10), 'B' : 'foo'})

In [5]: df.to_hdf('test.h5','df',mode='w',format='table',data_columns=True)

# this should have a name of B
In [7]: with pd.HDFStore('test.h5') as store:
    print store.select_column('df','B')
   ...:     
0    foo
1    foo
2    foo
3    foo
4    foo
5    foo
6    foo
7    foo
8    foo
9    foo
dtype: object
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug IO HDF5 read_hdf, HDFStore
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant