df_to
- nrv.backend.df_to(df: DataFrame, otype: None | Literal['numpy', 'list'], *args, **kwgs) object[source]
convert a
pandas.DataFrameto another type.Note
This function if a generalisation of all pandas.DataFrame methods to_…. In other words, if otype is not None, this function returns: f”df.to_{otype}(*args, **kwgs)”
- Parameters:
df (DataFrame) –
pandas.DataFrameto convert.otype (None | Literal["numpy", "list"]) – If None, return as a panda, convert into the corresponding class.
- Returns:
_description_
- Return type:
_type_