elphick.pandera_utils.pandera_utils.merge_schemas
- elphick.pandera_utils.pandera_utils.merge_schemas(list_of_schemas)[source]
Merge a list of DataFrameSchemas into a single DataFrameSchema.
The merged schema will contain all columns and checks from the input schemas. The schema for root level properties or the index will be taken from the first schema in the list. If there are multiple columns defined, the column from the first schema in the list will be used.
- Parameters:
list_of_schemas (
list
[DataFrameSchema
]) – The list of DataFrameSchemas to merge.- Return type:
DataFrameSchema
- Returns:
A DataFrameSchema that combines all the input schemas.