Data Types#

Library-agnostic dtypes#

pandera.dtypes.DataType

Base class of all Pandera data types.

pandera.dtypes.Bool

Semantic representation of a boolean data type.

pandera.dtypes.Timestamp

Semantic representation of a timestamp data type.

pandera.dtypes.DateTime

alias of pandera.dtypes.Timestamp

pandera.dtypes.Timedelta

Semantic representation of a delta time data type.

pandera.dtypes.Category

Semantic representation of a categorical data type.

pandera.dtypes.Float

Semantic representation of a floating data type.

pandera.dtypes.Float16

Semantic representation of a floating data type stored in 16 bits.

pandera.dtypes.Float32

Semantic representation of a floating data type stored in 32 bits.

pandera.dtypes.Float64

Semantic representation of a floating data type stored in 64 bits.

pandera.dtypes.Float128

Semantic representation of a floating data type stored in 128 bits.

pandera.dtypes.Int

Semantic representation of an integer data type.

pandera.dtypes.Int8

Semantic representation of an integer data type stored in 8 bits.

pandera.dtypes.Int16

Semantic representation of an integer data type stored in 16 bits.

pandera.dtypes.Int32

Semantic representation of an integer data type stored in 32 bits.

pandera.dtypes.Int64

Semantic representation of an integer data type stored in 64 bits.

pandera.dtypes.UInt

Semantic representation of an unsigned integer data type.

pandera.dtypes.UInt8

Semantic representation of an unsigned integer data type stored in 8 bits.

pandera.dtypes.UInt16

Semantic representation of an unsigned integer data type stored in 16 bits.

pandera.dtypes.UInt32

Semantic representation of an unsigned integer data type stored in 32 bits.

pandera.dtypes.UInt64

Semantic representation of an unsigned integer data type stored in 64 bits.

pandera.dtypes.Complex

Semantic representation of a complex number data type.

pandera.dtypes.Complex64

Semantic representation of a complex number data type stored in 64 bits.

pandera.dtypes.Complex128

Semantic representation of a complex number data type stored in 128 bits.

pandera.dtypes.Complex256

Semantic representation of a complex number data type stored in 256 bits.

pandera.dtypes.Decimal

Semantic representation of a decimal data type.

pandera.dtypes.String

Semantic representation of a string data type.

Pandas Dtypes#

Listed here for compatibility with pandera versions < 0.7. Passing native pandas dtypes to pandera components is preferred.

GeoPandas Dtypes#

new in 0.9.0

Pydantic Dtypes#

new in 0.10.0

pandera.engines.pandas_engine.PydanticModel

A pydantic model datatype applying to rows in a dataframe.

Utility functions#

pandera.dtypes.is_subdtype

Returns True if first argument is lower/equal in DataType hierarchy.

pandera.dtypes.is_float

Return True if pandera.dtypes.DataType is a float.

pandera.dtypes.is_int

Return True if pandera.dtypes.DataType is an integer.

pandera.dtypes.is_uint

Return True if pandera.dtypes.DataType is an unsigned integer.

pandera.dtypes.is_complex

Return True if pandera.dtypes.DataType is a complex number.

pandera.dtypes.is_numeric

Return True if pandera.dtypes.DataType is a complex number.

pandera.dtypes.is_bool

Return True if pandera.dtypes.DataType is a boolean.

pandera.dtypes.is_string

Return True if pandera.dtypes.DataType is a string.

pandera.dtypes.is_datetime

Return True if pandera.dtypes.DataType is a datetime.

pandera.dtypes.is_timedelta

Return True if pandera.dtypes.DataType is a timedelta.

pandera.dtypes.immutable

dataclasses.dataclass() decorator with different default values: frozen=True, init=False, repr=False.

Engines#

pandera.engines.engine.Engine

Base Engine metaclass.

pandera.engines.numpy_engine.Engine

Numpy data type engine.

pandera.engines.pandas_engine.Engine

Pandas data type engine.