pandera.DataFrameSchema.add_columns

DataFrameSchema.add_columns(extra_schema_cols)[source]

Create a copy of the DataFrameSchema with extra columns.

Parameters

extra_schema_cols (DataFrameSchema) – Additional columns of the format

Return type

DataFrameSchema

Returns

a new DataFrameSchema with the extra_schema_cols added