Pandas version checks
- [X] I have checked that the issue still exists on the latest versions of the docs on
main
here
Location 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
Comment From: KeiOshima
i've seen similar issues in pandas.DatetimeIndex.month and pandas.DatetimeIndex.year
Comment From: gboeker
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
Comment From: gboeker
I would love to work on this issue if it looks correct
Comment From: josh-tan77
take