scipp.compat.from_pandas#

scipp.compat.from_pandas(pd_obj)#

Converts a pandas.DataFrame or pandas.Series object into a scipp Dataset or DataArray respectively.

Parameters

pd_obj (Union[DataFrame, Series]) – The Dataframe or Series to convert.

Returns

Union[Variable, DataArray, Dataset, DataGroup] – The converted scipp object.