Skip to content

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

Merged
merged 8 commits into from
Jun 26, 2023

Conversation

DeaMariaLeon
Copy link
Member

Towards #37875

@DeaMariaLeon DeaMariaLeon added this to the 2.1 milestone Jun 23, 2023

Examples
--------
>>> dtype = pd.DatetimeTZDtype(tz='dateutil/US/Central')
Copy link
Member

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?

Copy link
Member Author

@DeaMariaLeon DeaMariaLeon Jun 24, 2023

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)

Copy link
Member

@MarcoGorelli MarcoGorelli left a 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
Copy link
Member

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

@mroeschke mroeschke merged commit 649b456 into pandas-dev:main Jun 26, 2023
@mroeschke
Copy link
Member

Thanks @DeaMariaLeon

@DeaMariaLeon DeaMariaLeon deleted the examples-Jun23 branch June 26, 2023 17:07
Daquisu pushed a commit to Daquisu/pandas that referenced this pull request Jul 8, 2023
* Examples api.types, Sparse, TZDtype

* Edited code_checks

* Changed tz to zoneinfo

* Added ZoneInfo for tz param
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants