WoodworkTableAccessor.
drop
Drop specified columns from a DataFrame.
columns (str or list[str]) – Column name or names to drop. Must be present in the DataFrame.
DataFrame with the specified columns removed, maintaining Woodwork typing information.
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.
DataFrame.ww.init
DataFrame.ww.drop