pandera.typing.FieldType¶

class pandera.typing.FieldType(*args: Any, **kwargs: Any)[source]¶

Typing-only descriptor for a DataFrameModel field.

FieldType[T] describes the dtype consumed by Pandera’s runtime model parser while modeling class-level access as the field name. A backend pa.Field(...) object may be supplied as additional metadata, or as the assigned value of the field.

The additional type parameters are intentionally variadic so that the runtime parser can accept field metadata without requiring a second type parameter when no metadata is present.

Methods