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

propertyDatetimeMethods.hour:Series#

The hours of the datetime.

Examples:

>>>importbigframes.pandasasbpd>>>s=bpd.Series(...pd.date_range("2000-01-01",periods=3,freq="h")...)>>>s0    2000-01-01 00:00:001    2000-01-01 01:00:002    2000-01-01 02:00:00dtype: timestamp[us][pyarrow]>>>s.dt.hour0    01    12    2dtype: Int64

This Page