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
# MulitIndex -> works:
sep = "\t"
indexcols =[0,1]
chunksize=5
xbed = "testtable.tab"
%rm 'tempstore.h5'
# create a store
with pd.HDFStore('tempstore.h5') as store:
for nn, chunk in enumerate(pd.read_table(xbed, chunksize=chunksize, sep = sep, index_col= indexcols)):
group = "x"
print(chunk.index.names)
store.append(group, chunk, format = "table",
min_itemsize=dict(zip(chunk.index.names, [32]*len(chunk.index.names))))
print("chunk #" , nn, file = sys.stderr)
# simple Index -> fails:
sep = "\t"
indexcols =[0] # <==== this is the only difference
chunksize=5
xbed = "testtable.tab"
%rm 'tempstore.h5'
# create a store
with pd.HDFStore('tempstore.h5') as store:
for nn, chunk in enumerate(pd.read_table(xbed, chunksize=chunksize, sep = sep, index_col= indexcols)):
group = "x"
print(chunk.index.names)
store.append(group, chunk, format = "table",
min_itemsize=dict(zip(chunk.index.names, [32]*len(chunk.index.names))))
print("chunk #" , nn, file = sys.stderr)
-> ... ValueError: min_itemsize has the key [V1] which is not an axis or data_column
The text was updated successfully, but these errors were encountered:
The following example works with MultiIndex, but fails with simple index, which is bad in terms of generalization / intuitive behaviour:
-> ... ValueError: min_itemsize has the key [V1] which is not an axis or data_column
The text was updated successfully, but these errors were encountered: