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.
inplace (bool) – If False, return a copy. Otherwise, do operation inplace and return None.
DataFrame with the specified columns removed, maintaining Woodwork typing information or None if inplace=True. Only possible for pandas dataframes.
DataFrame or None
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