parq_blockmodel.schema.utils.extract_required_columns_from_schema#
- parq_blockmodel.schema.utils.extract_required_columns_from_schema(schema)[source]#
Extract the set of column names that are required (should be persisted).
Columns with required=False are non-persisted calculated columns and should be excluded from output during write operations.
- Parameters:
schema (DataFrameSchema) – The pandera schema.
- Returns:
Column names with required=True, or all schema columns if required is not explicitly set (defaults to True).
- Return type:
set[str]