bigframes.pandas.api.typing.DatetimeMethods.hour#

property DatetimeMethods.hour: Series#

The hours of the datetime.

Examples:

>>> import bigframes.pandas as bpd
>>> s = bpd.Series(
...     pd.date_range("2000-01-01", periods=3, freq="h")
... )
>>> s
0    2000-01-01 00:00:00
1    2000-01-01 01:00:00
2    2000-01-01 02:00:00
dtype: timestamp[us][pyarrow]
>>> s.dt.hour
0    0
1    1
2    2
dtype: Int64
Morty Proxy This is a proxified and sanitized view of the page, visit original site.