-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
DOC Fix EX01 issues in docstrings #51440
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
Conversation
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.
Nice, thanks @DeaMariaLeon !
Leaving open for a bit in case others have comments, then will merge
pandas/_libs/tslibs/period.pyx
Outdated
Examples | ||
-------- | ||
>>> period = pd.Period('2023-1-1', freq='D') | ||
>>> period = period.to_timestamp() |
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.
could we use a different name here since it is no longer a period?
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.
Done..
I also added to the DataFrame.to_timestamp example, to show the use of freq
.
Merge remote-tracking branch 'origin/examples' into examples
Thanks @DeaMariaLeon |
Thank you |
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.Towards #37875