set_object_meta

data_base.IO.LoaderDumper.meta.set_object_meta(obj, meta)

Set/reset the meta of a dataframe.

Reads in the object meta from the same savedir and tries to assign the correct dtypes to columns and index, as well as the index name.

Parameters:
obj

The object to reset the dtypes of.

meta : pd.DataFrame

metadata for the object, containing only column names and the index with correct dtypes.

Returns:

None. Adapts the original object.

Raises:
  • AssertionError – If the object is not a pandas DataFrame, pandas Series, or dask DataFrame.

  • AssertionError – If no meta information is provided.