PandasDictInputOutput#
- class pybrops.core.io.PandasDictInputOutput.PandasDictInputOutput[source]#
Bases:
object
Abstract class for defining pandas dictionary input/output functionality.
This abstract class defines two functions with the following purposes:
to_pandas_dict
- export an object to adict
ofpandas.DataFrame
.from_pandas_dict
- load an object from adict
ofpandas.DataFrame
.
Methods
Read an object from a
dict
ofpandas.DataFrame
.Export an object to a
dict
ofpandas.DataFrame
.- abstract classmethod from_pandas_dict(dic, **kwargs)[source]#
Read an object from a
dict
ofpandas.DataFrame
.- Parameters:
dic (dict) – Python dictionary containing
pandas.DataFrame
from which to read.kwargs (dict) – Additional keyword arguments to use for dictating importing from a
dict
ofpandas.DataFrame
.
- Returns:
out – An object read from a
dict
ofpandas.DataFrame
.- Return type: