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

Comment From: prateekbisht23

can i work on it too!!

Comment From: PVCharan

I would like to work on this

Comment From: Epik-Whale463

Hi @josh-tan77,
I noticed this issue is assigned to you but there doesn’t seem to be a PR open yet. If you’re not actively working on it, would it be okay if I take a shot at fixing it? Otherwise, please let me know if you’d prefer to keep working on it yourself.

Thanks!

Comment From: Karthik-Ramkumar

take

Comment From: Karthik-Ramkumar

Hi this is my first time contributing, I have raised a PR with a potential fix. Can someone review this bug and advise me further if i need to make any changes.

Comment From: mosunmola-zainab

Hi, I would like to fix this if no one is working on it.