pandera.model.BaseConfig

class pandera.model.BaseConfig[source]

Bases: object

Define DataFrameSchema-wide options.

new in 0.5.0

Attributes

coerce

coerce types of all schema components

description

arbitrary textual description

from_format

data format before validation.

from_format_kwargs

a dictionary keyword arguments to pass into the reader function that converts the object of type from_format to a pandera-validate-able data structure.

multiindex_coerce

coerce types of all MultiIndex components

multiindex_name

name of multiindex

multiindex_ordered

validate MultiIndex in order

multiindex_strict

make sure all specified columns are in validated MultiIndex - if "filter", removes indexes not specified in the schema

name

name of schema

ordered

validate columns order

strict

make sure all specified columns are in the validated dataframe - if "filter", removes columns not specified in the schema

title

human-readable label for schema

to_format

data format to serialize into after validation.

to_format_kwargs

a dictionary keyword arguments to pass into the writer function that converts the pandera-validate-able object to type to_format.

unique

make sure certain column combinations are unique