hyperimpute.plugins.utils.cast module
- to_dataframe(X: Any) DataFrame
Helper for casting arguments to pandas.DataFrame.
- Parameters:
X – the object to cast.
- Returns:
the converted DataFrame.
- Return type:
pd.DataFrame
- Raises:
ValueError – if the argument cannot be converted to a DataFrame.
- to_ndarray(X: Any) ndarray
Helper for casting arguments to numpy.ndarray.
- Parameters:
X – the object to cast.
- Returns:
the converted ndarray.
- Return type:
pd.DataFrame
- Raises:
ValueError – if the argument cannot be converted to a ndarray.