select_from_dataframe#
- select_from_dataframe(df: DataFrame, columns: Optional[Union[Hashable, List[Hashable]]] = None, ignore_columns: Optional[Union[Hashable, List[Hashable]]] = None) DataFrame [source]#
Filter DataFrame columns by given params.
- Parameters
- dfpd.DataFrame
- columnst.Union[Hashable, t.List[Hashable]] , default: None
Column names to keep.
- ignore_columnst.Union[Hashable, t.List[Hashable]] , default: None
Column names to drop.
- Returns
- pandas.DataFrame
returns horizontally filtered dataframe
- Raises
- DeepchecksValueError
If some columns do not exist within provided dataframe; If ‘columns’ and ‘ignore_columns’ arguments are both not ‘None’.