HDF5 file grows in size after overwriting pandas frame

I am trying to overwrite the pandas framework in hdf5 file. Every time I do this, the file size increases, and the contents of the saved frame are the same. If I use mode = 'w', I have lost all other entries. Is this a mistake or am I missing something?

import pandas df = pandas.read_csv('1.csv') for i in range(100): store = pandas.HDFStore('tmp.h5') store.put('TMP', df) store.close() 

The size of tmp.h5 is growing.

+5
source share
1 answer

Read the big warning at the bottom of this section.

This is how HDF5 works.

+5
source

Source: https://habr.com/ru/post/1233607/


All Articles