-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG/ENH - base argument no longer ignored in period resample #23941
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
Conversation
Hello @ArtinSarraf! Thanks for updating the PR.
Comment last updated on December 08, 2018 at 05:00 Hours UTC |
Codecov Report
@@ Coverage Diff @@
## master #23941 +/- ##
==========================================
- Coverage 92.22% 92.22% -0.01%
==========================================
Files 162 162
Lines 51785 51805 +20
==========================================
+ Hits 47758 47776 +18
- Misses 4027 4029 +2
Continue to review full report at Codecov.
|
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.
Good start! Also needs a whatsnew
entry.
pandas/core/resample.py
Outdated
j = -1 if self.freq.onOffset(end) else None | ||
|
||
labels = binner = PeriodIndex(start=p_start, end=p_end, | ||
freq=self.freq, |
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.
this is a lint error
@jreback - caught a bug in my original bin offset calculation. Previously it was only valid when the index started at the 0 base of the index's frequency. I've fixed that and added several test cases that previously would have failed. |
can you merge master |
@mroeschke - reverted the changes here and added a new PR. |
@jreback / @mroeschke - anything else to consider? |
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.
looks good. just want some more docs.
thanks @ArtinSarraf |
git diff upstream/master -u -- "*.py" | flake8 --diff