Closed
Description
While reviewing: #20198, I notices this was defined in the DatetimeProperties
itself:
pandas/pandas/core/indexes/accessors.py
Lines 114 to 143 in 78ded25
Is there any reason that we have it like that, while all others are just wrapped DatetimeIndex attributes/methods?
Because that means this returns (a bit strangly) an ndarray instead of a Series of the datetime.datetime values (making it inconsistent with other methods)