, , data_columns=True...
:
In [39]: df = pd.DataFrame(np.random.randint(0,100,size=(10, 3)), columns=list('ABC'))
In [40]: fn = 'c:/temp/x.h5'
In [41]: store = pd.HDFStore(fn)
In [42]: store.append('table_no_dc', df, format='table')
In [43]: store.append('table_dc', df, format='table', data_columns=True)
In [44]: store.append('table_dc_no_index', df, format='table', data_columns=True, index=False)
data_columns , :
In [45]: store.get_storer('table_no_dc').group.table
Out[45]:
/table_no_dc/table (Table(10,)) ''
description := {
"index": Int64Col(shape=(), dflt=0, pos=0),
"values_block_0": Int32Col(shape=(3,), dflt=0, pos=1)}
byteorder := 'little'
chunkshape := (3276,)
autoindex := True
colindexes := {
"index": Index(6, medium, shuffle, zlib(1)).is_csi=False}
data_columns=True - :
In [46]: store.get_storer('table_dc').group.table
Out[46]:
/table_dc/table (Table(10,)) ''
description := {
"index": Int64Col(shape=(), dflt=0, pos=0),
"A": Int32Col(shape=(), dflt=0, pos=1),
"B": Int32Col(shape=(), dflt=0, pos=2),
"C": Int32Col(shape=(), dflt=0, pos=3)}
byteorder := 'little'
chunkshape := (3276,)
autoindex := True
colindexes := {
"C": Index(6, medium, shuffle, zlib(1)).is_csi=False,
"A": Index(6, medium, shuffle, zlib(1)).is_csi=False,
"index": Index(6, medium, shuffle, zlib(1)).is_csi=False,
"B": Index(6, medium, shuffle, zlib(1)).is_csi=False}
data_columns=True, index=False - , :
In [47]: store.get_storer('table_dc_no_index').group.table
Out[47]:
/table_dc_no_index/table (Table(10,)) ''
description := {
"index": Int64Col(shape=(), dflt=0, pos=0),
"A": Int32Col(shape=(), dflt=0, pos=1),
"B": Int32Col(shape=(), dflt=0, pos=2),
"C": Int32Col(shape=(), dflt=0, pos=3)}
byteorder := 'little'
chunkshape := (3276,)
colindexes -