ensure_dataframe_type#

ensure_dataframe_type(obj: Any) DataFrame[source]#

Ensure that given object is of type DataFrame or Dataset and return it as DataFrame. else raise error.

Parameters
objt.Any

Object to ensure it is DataFrame or Dataset

Returns
——-
pd.DataFrame