XarrayΒΆ
New in 0.31.0
Schemas and components for validating xarray.DataArray,
xarray.Dataset, and xarray.DataTree. Typical imports use
pandera.xarray; implementations live under pandera.api.xarray.
See Xarray Data Validation for usage examples.
The pandera.xarray entry point also re-exports
Check, Parser, the
decorators (check_input(),
etc.), and pandera.errors β see Core for those APIs.
SchemasΒΆ
A lightweight xarray DataArray validator. |
|
A lightweight xarray Dataset validator. |
|
Validate an |
Schema componentsΒΆ
Per-variable schema inside |
|
Specification for one entry in |
Declarative modelsΒΆ
Declarative schema for a single |
|
Declarative schema for an |
|
Declarative schema for an |
Field specification for xarray models (mirrors dataframe |
TypingΒΆ
Mark a field on |
|
Annotation-only generic for |
|
Annotation-only generic for |
|
Annotation-only generic for |
|
Marker base for pandera xarray annotation types. |
Model configurationΒΆ
Abstract base classesΒΆ
Check object typesΒΆ
Types accepted by xarray Check backends and the
XARRAY_CHECK_OBJECT_TYPES registry tuple.
Container passed to Check backends. |
|
Built-in immutable sequence. |
|
Built-in immutable sequence. |
ConfigurationΒΆ
See also Core for the full configuration API.
Whether to apply checks at schema- or data-level, or both. |
|
Indicates whether a check/validator operates at a schema of data level. |
UtilitiesΒΆ
Resolve |
Schema inferenceΒΆ
Infer schema for an xarray DataArray or Dataset. |
IO (YAML / JSON)ΒΆ
Serialization helpers for xarray schemas (also re-exported from
pandera.xarray).
Write a DataArraySchema or DatasetSchema to yaml. |
|
Create a DataArraySchema or DatasetSchema from yaml. |
|
Write a DataArraySchema or DatasetSchema to json. |
|
Create a DataArraySchema or DatasetSchema from json. |
Hypothesis strategiesΒΆ
Hypothesis strategies for generating
DataArray / Dataset objects that match a schema. Requires the
strategies extra.
Strategy to generate scalar values matching a numpy dtype. |
|
Strategy to generate an |
|
Strategy to generate an |
|
|
Create a strategy from a DataArraySchema. |
|
Create a strategy from a DatasetSchema. |
DtypesΒΆ
See Data Types for DataType and
Engine.
See alsoΒΆ
Xarray Data Validation β tutorials and examples
Data Types β dtype engines including xarray
Decorators β validation decorators