API¶
The io
module and built-in Hypothesis
checks require a pandera
installation with the corresponding extension, see the
installation instructions for more details.
Schemas¶
A light-weight pandas DataFrame validator. |
|
Series validator. |
Schema Components¶
Validate types and properties of DataFrame columns. |
|
Validate types and properties of a DataFrame Index. |
|
Validate types and properties of a DataFrame MultiIndex. |
Schema Models¶
Definition of a |
Model Components
Used to provide extra information about a field of a SchemaModel. |
|
Decorator to make SchemaModel method a column/index check function. |
|
Decorator to make SchemaModel method a dataframe-wide check function. |
Typing
Typing definitions and helpers. |
Config
Define DataFrameSchema-wide options. |
Checks¶
Check a pandas Series or DataFrame for certain properties. |
|
Special type of |
Pandas Data Types¶
Enumerate all valid pandas data types. |
Decorators¶
Validate function argument when function is called. |
|
Validate function output. |
|
Check schema for multiple inputs and outputs. |
|
Validate function inputs and output based on type annotations. |
Schema Inference¶
Infer schema for pandas DataFrame or Series object. |
IO Utils¶
Create |
|
Write |
|
Write |
Data Synthesis Strategies¶
Generate synthetic data from a schema definition. |
Extensions¶
pandera API extensions |
Errors¶
Raised when object does not pass schema validation constraints. |
|
Raised when multiple schema are lazily collected into one error. |
|
Raised when schema initialization fails. |
|
Raised when schema definition is invalid on object validation. |