I\'m using HDFStore with pandas / pytables.
After removing a table or object, hdf5 file size remains unaffected. It seems this space is reused afterwards when additi
see here
you need to ptrepack it, which rewrites the file.
ptrepack
ptrepack --chunkshape=auto --propindexes --complevel=9 --complib=blosc in.h5 out.h5
as an example (this will also compress the file).