-
Notifications
You must be signed in to change notification settings - Fork 752
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
Fix DateSplitter
for multiples of base frequencies
#2500
Conversation
|
||
The frequency is taken from ``start``. | ||
""" | ||
return ((end - start).n // to_offset(start.freq).n) + 1 |
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.
Why do you need to call to_offset here?
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.
Yeah I think this can be removed
end: pd.Period, | ||
) -> int: | ||
""" | ||
Counts how many periods fit between ``start`` and ``end`` |
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.
Should be "count ...".
I think an example would be great
* Fix dataclass handling of member inheritance. (#2492) * Fix: sort dataset keys in error message when importing non-existing dataset (#2497) Co-authored-by: Lorenzo Stella <[email protected]> Co-authored-by: Jasper <[email protected]> * Fix `DateSplitter` for multiples of base frequencies (#2500) * Fix docstrings according to docformatter (#2501) * Pin docformatter version. (#2507) * Docs: Fix install instructions. (#2508) * Add examples to docstring for `periods_between` (#2504) * Cap numpy compatibility in `mxnet` extra requirements (#2506) * xfail multivariate grouper test Co-authored-by: Lorenzo Stella <[email protected]> Co-authored-by: Jasper <[email protected]> * remove undesired files * `itertools.select`. (#2426) * Add itertools select. Co-authored-by: Jasper <[email protected]> Co-authored-by: Lorenzo Stella <[email protected]> Co-authored-by: Jasper <[email protected]>
Issue #, if available: Fixes #2499
Description of changes:
periods_between
to_integer_slice
pointless (can be removed in a separate breaking change)TimeSeriesSlice
pointless (slice_data_entry
is sufficient)By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Please tag this pr with at least one of these labels to make our release process faster: BREAKING, new feature, bug fix, other change, dev setup