woodwork.table_accessor.WoodworkTableAccessor.drop

WoodworkTableAccessor.drop(columns)[source]

Drop specified columns from a DataFrame.

Parameters

columns (str or list[str]) – Column name or names to drop. Must be present in the DataFrame.

Returns

DataFrame with the specified columns removed, maintaining Woodwork typing information.

Return type

DataFrame

Note

This method is used for removing columns only. To remove rows with drop, go through the DataFrame directly and then reinitialize Woodwork with DataFrame.ww.init instead of calling DataFrame.ww.drop.