pandas.DatetimeIndex.weekofyear

DatetimeIndex.weekofyear

The week ordinal of the year