You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With pandas 0.8.1 (and pytables 2.3.1), trying to save an empty Series or DataFrame when using HDFStore results in an exception after some (but not all) data has been written to the hdf5 file.
frompandasimportDataFrame, Series, HDFStore# These are all emptys0=Series()
s1=Series(name='myseries')
df0=DataFrame()
df1=DataFrame(index=['a', 'b', 'c'])
df2=DataFrame(columns=['d', 'e', 'f'])
store=HDFStore('myfile.h5')
# These all failtry:
store['s0'] =s0exceptValueError:
print'Failed to write s0'try:
store['s1'] =s1exceptValueError:
print'Failed to write s1'try:
store['df0'] =df0exceptValueError:
print'Failed to write df0'try:
store['df1'] =df1exceptValueError:
print'Failed to write df1'try:
store['df2'] =df2exceptValueError:
print'Failed to write df2'
With pandas 0.8.1 (and pytables 2.3.1), trying to save an empty Series or DataFrame when using HDFStore results in an exception after some (but not all) data has been written to the hdf5 file.
Here is the traceback:
And here I show an issue that arises from only some of the data being written:
Oh, and just for the record, all tests in "io/tests/test_pytables.py" succeed for me.
The text was updated successfully, but these errors were encountered: