pandera.DataFrameSchema.remove_columns

DataFrameSchema.remove_columns(cols_to_remove)[source]

Removes columns from a DataFrameSchema and returns a new copy.

Parameters

cols_to_remove (List) – Columns to be removed from the DataFrameSchema

Return type

DataFrameSchema

Returns

a new DataFrameSchema without the cols_to_remove