pandera.engines.pandas_engine.Date#

class pandera.engines.pandas_engine.Date(to_datetime_kwargs=None)[source]#

Semantic representation of a date data type.

Attributes

continuous

Whether the number data type is continuous.

type

Native pandas dtype boxed by the data type.

to_datetime_kwargs

Any additional kwargs passed to pandas.to_datetime() for coercion.

Methods

__init__

check

Check that pandera DataType are equivalent.

coerce

Pure coerce without catching exceptions.

coerce_value

Coerce an value to a particular type.

try_coerce

Coerce data container to the data type, raises a ParserError if the coercion fails :raises: ParserError: if coercion fails

__call__

Coerce data container to the data type.