Drop#

class polpo.preprocessing.pd.Drop(labels, axis=0, inplace=True)[source]#

Bases: PreprocessingStep

Drop specified labels from rows or columns.

Check out https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.drop.html.

Parameters:
  • inplace (bool) – Whether to perform operation in place.

  • axis ({0 or ‘index’, 1 or ‘columns’}) – Whether to drop labels from the index (0 or ‘index’) or columns (1 or ‘columns’).

apply(df)[source]#

Apply step.

Parameters:

df (pandas.DataFrame) – Dataframe.