marmot.utils.dataio.save_to_h5#

save_to_h5(df: pandas.core.frame.DataFrame, file_name: pathlib.Path, key: str, mode: str = 'a', complevel: int = 9, complib: str = 'blosc:zlib', **kwargs) None[source]#

Saves data to formatted hdf5 file

Parameters
  • df (pd.DataFrame) – Dataframe to save

  • file_name (Path) – name of hdf5 file

  • key (str) – formatted property identifier, e.g generator_Generation

  • mode (str, optional) – file access mode. Defaults to “a”.

  • complevel (int, optional) – compression level. Defaults to 9.

  • complib (str, optional) – compression library. Defaults to ‘blosc:zlib’.

  • **kwargs – These parameters will be passed pandas.to_hdf function.