pandas.DatetimeIndex.week

property DatetimeIndex.week[source]

The week ordinal of the year.

Deprecated since version 1.1.0.

weekofyear and week have been deprecated. Please use DatetimeIndex.isocalendar().week instead.