Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
Ctrl+K

pandas.DatetimeTZDtype#

classpandas.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. Currently limitedto"ns".

tzstr, int, or datetime.tzinfo

The timezone.

Attributes

unit

The precision of the datetime data.

tz

The timezone.

Methods

None

Raises:
ZoneInfoNotFoundError

When the requested timezone cannot be found.

Examples

>>>fromzoneinfoimportZoneInfo>>>pd.DatetimeTZDtype(tz=ZoneInfo('UTC'))datetime64[ns, UTC]
>>>pd.DatetimeTZDtype(tz=ZoneInfo('Europe/Paris'))datetime64[ns, Europe/Paris]

[8]ページ先頭

©2009-2025 Movatter.jp