pandera.engines.pandas_engine.DateTime#
- class pandera.engines.pandas_engine.DateTime(to_datetime_kwargs=<factory>, unit='ns', tz=None, tz_localize_kwargs=<factory>)[source]#
Semantic representation of a potentially timezone-aware datetime.
Uses
np.dtype("datetime64[ns]")for non-timezone aware datetimes andpandas.DatetimeTZDtypefor timezone-aware datetimes.Attributes
auto_coerceWhether to force coerce to be True in all cases
continuousWhether the number data type is continuous.
typeNative pandas dtype boxed by the data type.
tzThe timezone.
unitThe precision of the datetime data.
to_datetime_kwargsAny additional kwargs passed to
pandas.to_datetime()for coercion.tz_localize_kwargsKeyword arguments passed to
pandas.Series.dt.tz_localize()for coercion.Methods