modin.pandas.DatetimeIndex.hour¶
- property DatetimeIndex.hour: Index[source]¶
The hours of the datetime.
- Return type:
An Index with the hours of the datetime.
Examples
>>> idx = pd.date_range("2000-01-01", periods=3, freq="h") >>> idx DatetimeIndex(['2000-01-01 00:00:00', '2000-01-01 01:00:00', '2000-01-01 02:00:00'], dtype='datetime64[ns]', freq=None) >>> idx.hour Index([0, 1, 2], dtype='int64')