Open gboeker opened 5 months ago
i've seen similar issues in pandas.DatetimeIndex.month and pandas.DatetimeIndex.year
Source link for DatetimeIndex.round also looks incorrect: Should change to: https://github.com/pandas-dev/pandas/blob/v2.2.2/pandas/core/arrays/datetimelike.py#L1795-L1856
The following also look incorrect: DatetimeIndex.floor DatetimeIndex.std DatetimeIndex.time DatetimeIndex.timetz
I would love to work on this issue if it looks correct
take
Pandas version checks
main
hereLocation of the documentation
https://pandas.pydata.org/docs/reference/api/pandas.DatetimeIndex.quarter.html
Documentation problem
source link for DatetimeIndex.quarter directs to incorrect code https://github.com/pandas-dev/pandas/blob/v2.2.2/pandas/core/indexes/extension.py#L67-L75
Suggested fix for documentation
replace with the following link https://github.com/pandas-dev/pandas/blob/4afc2771f0e18504cbb5237790cb336712e62f11/pandas/core/arrays/datetimes.py#L1817-L1845