pandera.api.pandas.model_config.BaseConfig

class pandera.api.pandas.model_config.BaseConfig[source]

基础: BaseConfig

定义 pandas DataFrameSchema 全局选项。

属性

add_missing_columns

如果缺少,则向数据框添加列

coerce

强制所有架构组件的类型

description

任意文本描述

drop_invalid_rows

在验证时删除无效行

dtype

数据框的datatype。

from_format

验证前的数据格式。

from_format_kwargs

一个字典关键字参数,用于传递给将from_format类型的对象转换为可验证的pandera数据结构的读取函数。

metadata

一个字典对象,用于在模式层级存储键值数据

multiindex_coerce

强制所有 MultiIndex 组件的类型

multiindex_name

多重索引的名称

multiindex_ordered

验证有序的多重索引

multiindex_strict

确保所有指定的列都在验证的 MultiIndex 中 - 如果 "filter",则删除在模式中未指定的索引

multiindex_unique

确保 MultiIndex 在列列表中是唯一的

name

模式的名称

ordered

验证列的顺序

strict

确保所有指定的列都在经过验证的数据框中 - 如果 "filter",则移除未在架构中指定的列

title

模式的可读标签

to_format

验证后要序列化的数据格式。

to_format_buffer

当 to_format 是自定义可调用时提供的缓冲区。

to_format_kwargs

一个字典关键字参数,用于传递给将 pandera 可验证对象转换为类型 to_format 的写入函数。

unique

确保某些列组合是唯一的

unique_column_names

确保数据框的列名称是唯一的