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: to_hdf failing with integer columns and data_columns=True #9057

Closed
jreback opened this issue Dec 11, 2014 · 1 comment · Fixed by #10098
Closed

BUG: to_hdf failing with integer columns and data_columns=True #9057

jreback opened this issue Dec 11, 2014 · 1 comment · Fixed by #10098
Labels
Bug Dtype Conversions Unexpected or buggy dtype conversions IO HDF5 read_hdf, HDFStore
Milestone

Comments

@jreback
Copy link
Contributor

jreback commented Dec 11, 2014

In [39]: N = 1000

In [40]: df = DataFrame(np.random.randint(0,8,size=N*400).astype('uint8').reshape(N,-1),index=pd.date_range('20130206',periods=N,freq='ms'))

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

In [42]: df.to_hdf('test.h5','df',mode='w',format='table',data_columns=True)
AttributeError: 'numpy.int64' object has no attribute 'startswith'
@jreback jreback added Bug Dtype Conversions Unexpected or buggy dtype conversions IO HDF5 read_hdf, HDFStore labels Dec 11, 2014
@jreback jreback added this to the 0.16.0 milestone Dec 11, 2014
@jreback jreback modified the milestones: 0.16.0, Next Major Release Mar 6, 2015
@jameshiebert
Copy link
Contributor

Looking at this as part of the PyCon Sprints.

@jreback jreback modified the milestones: 0.16.1, Next Major Release, 0.17.0 Apr 17, 2015
jameshiebert added a commit to jameshiebert/pandas that referenced this issue Jun 2, 2015
Have DataFrame.to_hdf() raise an error when using pytables with non-string
column types. Fixes pandas-dev#9057
@jreback jreback modified the milestones: 0.16.2, 0.17.0 Jun 2, 2015
jameshiebert added a commit to jameshiebert/pandas that referenced this issue Jun 3, 2015
Have DataFrame.to_hdf() raise an error when using pytables with non-string
column types. Fixes pandas-dev#9057
jameshiebert added a commit to jameshiebert/pandas that referenced this issue Jun 6, 2015
Have DataFrame.to_hdf() raise an error when using pytables with non-string
column types. Fixes pandas-dev#9057
jreback added a commit that referenced this issue Jun 7, 2015
BUG: invalid column names in a HDF5 table format #9057
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Dtype Conversions Unexpected or buggy dtype conversions IO HDF5 read_hdf, HDFStore
Projects
None yet
2 participants