-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: Fixing EX01 - Added examples #53818
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
pandas/core/dtypes/dtypes.py
Outdated
|
||
Examples | ||
-------- | ||
>>> dtype = pd.DatetimeTZDtype(tz='dateutil/US/Central') |
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 you use zoneinfo
for the tz
argument for these examples?
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.
I used the example from the reference forDatetimeTZDtype
because I wasn't familiar with it. It also uses dateutil
. Here is the link.
Please tell me if I should change that.
EDIT: Working on this (updated after review but incorrectly)
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 one, thanks @DeaMariaLeon !
Examples | ||
-------- | ||
>>> dtype = pd.IntervalDtype(subtype='int64', closed='both') | ||
>>> dtype.subtype |
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.
didn't know this existed, nice
Thanks @DeaMariaLeon |
* Examples api.types, Sparse, TZDtype * Edited code_checks * Changed tz to zoneinfo * Added ZoneInfo for tz param
Towards #37875