df = DataFrame(np.random.randn(5, 2), columns=['A', 'B'])
store = pd.HDFStore('test.h5', mode='w')
store.append('df_only_indexables', df)
store.append('df_with_data_columns', df, data_columns=True)
store.append('df_no_index', df, data_columns=True, index=False)
store
store.close()
Indexing and Data Columns in Pandas/PyTables