scistag.filestag.bundlers.dataframe_bundler.DataSeriesBundler¶
- class DataSeriesBundler[source]¶
Bases:
objectBundles and unpacks Pandas series, see
BundleMethods
Bundles a Pandas DataFrame to bytes
Restores a Pandas DataFrame from bytes
Attributes
__dict____doc____module____weakref__list of weak references to the object (if defined)
- classmethod bundle(data, options=None)[source]¶
Bundles a Pandas DataFrame to bytes
- Parameters
data (pd.Series) – The data to be packed
options (BundlingOptions | None) – The bundling options
- Return type
- Returns
The packed data as single bytes strings
- static unpack(data, options=None)[source]¶
Restores a Pandas DataFrame from bytes
- Parameters
data (bytes) – The data to be unpacked
options (UnpackOptions | None) – The unpacking options
- Return type
pd.Series
- Returns
The restored numpy array