modin.pandas.DatetimeIndex.month

property DatetimeIndex.month: Index[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.26.0/snowpark-python/src/snowflake/snowpark/modin/plugin/extensions/datetime_index.py#L288-L305)

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
Language: English