-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
TYP: annotate plotting._matplotlib.converter #35978
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
TYP: annotate plotting._matplotlib.converter #35978
Conversation
…notate-plotting-converter
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.
Thanks @jbrockmendel lgtm pending green
@@ -473,7 +473,7 @@ def _get_default_annual_spacing(nyears) -> Tuple[int, int]: | |||
return (min_spacing, maj_spacing) | |||
|
|||
|
|||
def period_break(dates, period): | |||
def period_break(dates: PeriodIndex, period: str) -> np.ndarray: |
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.
the docsting says that dates is "dates : PeriodIndex" and goes on to say "Array of intervals to monitor." could a PeriodArray be passed?
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.
It is only ever called with PeriodIndex. I guess passing PeriodArray wouldnt break the world.
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.
while period_range returns a PeriodIndex there doesn't look like anything to gain by adding PeriodArray atm
Thanks @jbrockmendel |
No description provided.