pandera.typing

Typing definitions and helpers.

Pandas object annotations

DataFrame([data, index, columns, dtype, copy])

Representation of pandas.DataFrame, only used for type annotation.

Index([data, dtype, copy, name, tupleize_cols])

Representation of pandas.Index, only used for type annotation.

Series([data, index, dtype, name, copy, …])

Representation of pandas.Series, only used for type annotation.

Dtype annotations

Bool

"bool" numpy dtype

DateTime

"datetime64[ns]" numpy dtype

Timedelta

"timedelta64[ns]" numpy dtype

Category

pandas "categorical" datatype

Float

"float" numpy dtype

Float16

"float16" numpy dtype

Float32

"float32" numpy dtype

Float64

"float64" numpy dtype

Int

"int" numpy dtype

Int8

"int8" numpy dtype

Int16

"int16" numpy dtype

Int32

"int32" numpy dtype

Int64

"int64" numpy dtype

UInt8

"uint8" numpy dtype

UInt16

"uint16" numpy dtype

UInt32

"uint32" numpy dtype

UInt64

"uint64" numpy dtype

INT8

"Int8" pandas dtype:: pandas 0.24.0+

INT16

"Int16" pandas dtype: pandas 0.24.0+

INT32

"Int32" pandas dtype: pandas 0.24.0+

INT64

"Int64" pandas dtype: pandas 0.24.0+

UINT8

"UInt8" pandas dtype:: pandas 0.24.0+

UINT16

"UInt16" pandas dtype: pandas 0.24.0+

UINT32

"UInt32" pandas dtype: pandas 0.24.0+

UINT64

"UInt64" pandas dtype: pandas 0.24.0+

Object

"object" numpy dtype

String

"str" numpy dtype

STRING

"str" numpy dtype