pandera.api.pyspark.model_config.BaseConfig¶
- class pandera.api.pyspark.model_config.BaseConfig[source]¶
Bases:
BaseModelConfigDefine DataFrameSchema-wide options.
new in 0.16.0
Attributes
coercecoerce types of all schema components
descriptionarbitrary textual description
dtypedatatype of the dataframe.
from_formatdata format before validation.
from_format_kwargsa dictionary keyword arguments to pass into the reader function that converts the object of type
from_formatto a pandera-validate-able data structure.metadataa dictionary object to store key-value data at schema level
namename of schema
orderedvalidate columns order
strictmake sure all specified columns are in the validated dataframe - if
"filter", removes columns not specified in the schematitlehuman-readable label for schema
to_formatdata format to serialize into after validation.
to_format_bufferBuffer to be provided when to_format is a custom callable.
to_format_kwargsa dictionary keyword arguments to pass into the writer function that converts the pandera-validate-able object to type
to_format.uniquemake sure certain column combinations are unique
unique_column_namesmake sure dataframe column names are unique