-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DOC: Fix docstring timestamps (Issue #59458) #59688
DOC: Fix docstring timestamps (Issue #59458) #59688
Conversation
thanks @mimistiv ! 🙏 i'll take a closer look later, but I think that or just splitting |
thanks @MarcoGorelli ! I think the issue is related to https://github.com/pandas-dev/pandas/blob/main/pandas/_libs/tslibs/timestamps.pxd#L24, where nanosecond and year are already declared |
hey @MarcoGorelli! Do you have any advice on how I could best handle this issue? I was thinking I could change the declarations in the pxd file to use _year and _nanosecond similarly to _value but that will mean I need to change it everywhere and I need to be sure what all the uses are. |
hey - sure, let's start with a separate pr which we can merge quickly, and then we'll iterate over the trickier one? |
…stamp-fix-docstring-validation
Hey @MarcoGorelli , I split up the PR and the value/month part of it has now been merged! :) Could you please take a look at the suggested solution I have for year and nanosecond here? |
Hey @MarcoGorelli @mroeschke, could I ask one of you to please take a look at the proposed solution in this PR when you have the time? Thanks in advance! |
hey - sure, sorry for the delay, i still need to undertsand why |
This pull request is stale because it has been open for thirty days with no activity. Please update and respond to this comment if you're still interested in working on this. |
my bad unfortunately, just had a work trip + holiday, and very little / no funded time at the moment - i'll get back to this, i'll remove the 'stale' label |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me, thanks @mimistiv
sorry for the delay, I wanted to check why it was necessary to use _year
instead of using super().year
- as far as I can tell, the answer is that pandas supports negative dates (i.e. before year 0) whereas the stdlib timestamp doesn't
Thanks @MarcoGorelli ! I can see that merging with main resulted in a failed unit test which seems unrelated to my PR. Is this a known issue? |
agree that it's unrelated, but recent commits look green 🥦 so it may have just fixed itself - let's ship this then, thanks for your contribution! |
pandas.Timestamp
#59458doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.