A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://pandas.pydata.org/docs/dev/user_guide/../reference/api/pandas.DatetimeTZDtype.html below:

pandas.DatetimeTZDtype — pandas 3.0.0.dev0+2231.g4f2aa4d2be documentation

pandas.DatetimeTZDtype#
class pandas.DatetimeTZDtype(unit='ns', tz=None)[source]#

An ExtensionDtype for timezone-aware datetime data.

This is not an actual numpy dtype, but a duck type.

Parameters:
unitstr, default “ns”

The precision of the datetime data. Valid options are "s", "ms", "us", "ns".

tzstr, int, or datetime.tzinfo

The timezone.

Attributes

Methods

Raises:
ZoneInfoNotFoundError

When the requested timezone cannot be found.

Examples

>>> from zoneinfo import ZoneInfo
>>> pd.DatetimeTZDtype(tz=ZoneInfo("UTC"))
datetime64[ns, UTC]
>>> pd.DatetimeTZDtype(tz=ZoneInfo("Europe/Paris"))
datetime64[ns, Europe/Paris]

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4