-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: resample with tz-aware: Values falls after last bin #15555
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
Changes from all commits
68a02aa
47b99ac
04ce929
a43bb19
44fc3f2
2a1d24c
d28ff98
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2670,6 +2670,11 @@ def test_resample_weekly_bug_1726(self): | |
# it works! | ||
df.resample('W-MON', closed='left', label='left').first() | ||
|
||
def test_resample_tz_aware_bug_15549(self): | ||
index = pd.DatetimeIndex([1450137600000000000, 1474059600000000000], tz='UTC').tz_convert('America/Chicago') | ||
df = pd.DataFrame([1, 2], index=index) | ||
df.resample('12h', closed='right', label='right').last().ffill() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
add a comment with the issue number as a comment (and not in the test name) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. agree, I will fix it. I just used the same notation as in the test above. thought it's a common thing |
||
|
||
def test_resample_bms_2752(self): | ||
# GH2753 | ||
foo = pd.Series(index=pd.bdate_range('20000101', '20000201')) | ||
|
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 line is going to be too long for linting.
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.
understood, I will change it