skoot.utils.dataframe_or_array

skoot.utils.dataframe_or_array(X, as_df)[source][source]

Get a dataframe or numpy array.

If the as_df param is True, returns a Pandas dataframe. Otherwise returns the underlying numpy array values.

Parameters:

X : DataFrame

The Pandas dataframe

as_df : bool

Whether to return a dataframe