pandas.DatetimeTZDtype.unit#

property DatetimeTZDtype.unit[source]#

The precision of the datetime data.

See also

DatetimeTZDtype.tz

Retrieves the timezone.

Examples

>>> from zoneinfo import ZoneInfo
>>> dtype = pd.DatetimeTZDtype(tz=ZoneInfo("America/Los_Angeles"))
>>> dtype.unit
'ns'