pandera.api.tensordict.model_components.Field

pandera.api.tensordict.model_components.Field(*, dtype=None, shape=None, checks=None, eq=None, ne=None, gt=None, ge=None, lt=None, le=None, in_range=None, isin=None, notin=None, no_nan=False, no_inf=False, nullable=False, unique=False, coerce=False, regex=False, ignore_na=True, raise_warning=False, n_failure_cases=None, alias=None, check_name=None, dtype_kwargs=None, title=None, description=None, default=None, metadata=None, required=True, **kwargs)[source]

Field specification for TensorDict models.

In addition to the intrinsic check arguments (ge, le, isin, …) and registered custom checks (passed as **kwargs), the checks argument accepts explicit Check objects (or a list of them), enabling one-off checks such as a valid one-hot row or an ignore-index label without falling back to the object API.

Return type:

Any