Skip to content
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: update PeriodArray docstring #37251

Merged
merged 2 commits into from
Oct 21, 2020
Merged

Conversation

arw2019
Copy link
Member

@arw2019 arw2019 commented Oct 19, 2020

@@ -67,7 +67,7 @@ class PeriodArray(PeriodMixin, dtl.DatelikeOps):
"""
Pandas ExtensionArray for storing Period data.

Users should use :func:`period_array` to create new instances.
Users should use :func:`period_range` to create new instances.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

period_array is correct

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not public, see also the linked issue

Copy link
Member

@jorisvandenbossche jorisvandenbossche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@arw2019 thanks for the PR.
I would also mention pd.array(..) as the way to create a PeriodArray from a sequence of Period scalars.

@arw2019
Copy link
Member Author

arw2019 commented Oct 20, 2020

@arw2019 thanks for the PR.
I would also mention pd.array(..) as the way to create a PeriodArray from a sequence of Period scalars.

Added

@jorisvandenbossche
Copy link
Member

Thanks for the update!

@jorisvandenbossche jorisvandenbossche merged commit a349462 into pandas-dev:master Oct 21, 2020
@jorisvandenbossche
Copy link
Member

Small development related comment: can you generally try to avoid rebasing / force pushing to a branch, but rather only add new commits? (which means merging master instead of rebasing to update to latest master) Github works better that way (eg you can specifically see the new changes since your last review) making reviewing easier.
(not of any concern of course for this specific PR of small size ;))

JulianWgs pushed a commit to JulianWgs/pandas that referenced this pull request Oct 26, 2020
kesmit13 pushed a commit to kesmit13/pandas that referenced this pull request Nov 2, 2020
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.

DOC: update PeriodArray docstring
3 participants