pandera.config.PanderaConfig

class pandera.config.PanderaConfig(**data)[source]

Pandera config base class.

This should pick up environment variables automatically, e.g.: export PANDERA_VALIDATION_ENABLED=False export PANDERA_VALIDATION_DEPTH=DATA_ONLY export PANDERA_CACHE_DATAFRAME=True export PANDERA_KEEP_CACHED_DATAFRAME=True

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Attributes

model_computed_fields

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_extra

Get extra fields set during validation.

model_fields

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

model_fields_set

Returns the set of fields that have been explicitly set on this model instance.

validation_enabled

validation_depth

cache_dataframe

keep_cached_dataframe

Methods