aif360.sklearn.datasets
.check_already_dropped¶
-
aif360.sklearn.datasets.
check_already_dropped
(labels, dropped_cols, name, dropped_by='numeric_only', warn=True)[source]¶ Check if columns have already been dropped and return only those that haven’t.
Parameters: - labels (single label or list-like) – Column labels to check.
- dropped_cols (set or pandas.Index) – Columns that were already dropped.
- name (str) – Original arg that triggered the check (e.g. dropcols).
- dropped_by (str, optional) – Original arg that caused dropped_cols`` (e.g. numeric_only).
- warn (bool, optional) – If
True
, produces aColumnAlreadyDroppedWarning
if there are columns in the intersection of dropped_cols and labels.
Returns: list – Columns in labels which are not in dropped_cols.