modin.pandas.DatetimeIndex.month

property DatetimeIndex.month: Index[source]

The month as January=1, December=12.

Return type:

An Index with the month of the datetime.

Examples

>>> idx = pd.date_range("2000-01-01", periods=3, freq="ME")
>>> idx
DatetimeIndex(['2000-01-31', '2000-02-29', '2000-03-31'], dtype='datetime64[ns]', freq=None)
>>> idx.month
Index([1, 2, 3], dtype='int64')
Copy