Skip to content

Conversation

jbrockmendel
Copy link
Member

No description provided.

jbrockmendel and others added 23 commits August 20, 2020 21:19
Copy link
Member

@simonjayhawkins simonjayhawkins left a comment

Choose a reason for hiding this comment

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

Thanks @jbrockmendel lgtm pending green



def period_break(dates, period):
def period_break(dates: PeriodIndex, period: str) -> np.ndarray:
Copy link
Member

Choose a reason for hiding this comment

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

the docsting says that dates is "dates : PeriodIndex" and goes on to say "Array of intervals to monitor." could a PeriodArray be passed?

Copy link
Member Author

Choose a reason for hiding this comment

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

It is only ever called with PeriodIndex. I guess passing PeriodArray wouldnt break the world.

Copy link
Member

Choose a reason for hiding this comment

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

while period_range returns a PeriodIndex there doesn't look like anything to gain by adding PeriodArray atm

@simonjayhawkins simonjayhawkins added the Typing type annotations, mypy/pyright type checking label Aug 29, 2020
@simonjayhawkins simonjayhawkins added this to the 1.2 milestone Aug 29, 2020
@simonjayhawkins simonjayhawkins merged commit 972f491 into pandas-dev:master Aug 30, 2020
@simonjayhawkins
Copy link
Member

Thanks @jbrockmendel

@jbrockmendel jbrockmendel deleted the annotate-plotting-converter branch August 30, 2020 15:06
AlexKirko pushed a commit to AlexKirko/pandas that referenced this pull request Aug 31, 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
Typing type annotations, mypy/pyright type checking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants