Add DatetimeIndex.day_of_year Method · Issue #1723 · pandas-dev/pandas (original) (raw)
PeriodIndex has a day_of_year method, but DatetimeIndex doesn't. This makes it hard to write generic code which can take either.
Given they both have dayofyear attributes it may be best to remove the day_of_year method so that there is only one obvious way to do it.