Skip to content

BUG: fix Resampling a Series with a timezone using kind='period' (GH5430) #5432

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

Merged
merged 1 commit into from
Nov 6, 2013

Conversation

kevinastone
Copy link
Contributor

There's a failing test case and the patch in subsequent commits.

closes #5430
closes #3609

@@ -1836,6 +1836,38 @@ def test_concat_datetime_datetime64_frame(self):
# it works!
pd.concat([df1, df2_obj])

def test_period_resample(self):
# #3609
Copy link
Contributor

Choose a reason for hiding this comment

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

can you change this to GH3609 instead of #3609? just a stylistic thing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, will do.

@jtratner
Copy link
Contributor

jtratner commented Nov 5, 2013

You also need to squash all of your commits down to one.

…cal timezone.

Related to pandas-dev#5340.

Signed-off-by: Kevin Stone <[email protected]>

Added Test Case for pandas-dev#3609.

Signed-off-by: Kevin Stone <[email protected]>

Fixes Grouping by Period with Timezones

The timestamp generated to partition the data frame doesn't include timezone information, so it was creating the wrong groups.  It also had the frequency ('D') hard coded.

Fixes pandas-dev#5340 and pandas-dev#3609.

Signed-off-by: Kevin Stone <[email protected]>
@jreback
Copy link
Contributor

jreback commented Nov 6, 2013

@jtratner looks ok to me

jtratner added a commit that referenced this pull request Nov 6, 2013
BUG: fix Resampling a Series with a timezone using kind='period' (GH5430)
@jtratner jtratner merged commit e50942f into pandas-dev:master Nov 6, 2013
@jtratner
Copy link
Contributor

jtratner commented Nov 6, 2013

Thanks for putting this together!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants