Skip to content

BUG: GroupBy doesn't preserve timezone #7099

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
May 13, 2014
Merged

Conversation

sinhrks
Copy link
Member

@sinhrks sinhrks commented May 11, 2014

Closes #3950. This is a fix for groupby issue.
(#7092 is for original report)

labels, uniques = algos.factorize(inds, sort=True)
if hasattr(inds, 'factorize'):
labels, uniques = inds.factorize(sort=True)
else:
Copy link
Contributor

Choose a reason for hiding this comment

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

algos.factorize should do this
too much if thens otherwise

@jreback jreback added this to the 0.14.1 milestone May 12, 2014
@sinhrks
Copy link
Member Author

sinhrks commented May 13, 2014

@jreback OK. Modified algos.factorize to meet the behaviour discussed in #7090. Is this what you mean?

@jreback jreback modified the milestones: 0.14.0, 0.14.1 May 13, 2014
jreback added a commit that referenced this pull request May 13, 2014
BUG: GroupBy doesn't preserve timezone
@jreback jreback merged commit 4c30610 into pandas-dev:master May 13, 2014
@jreback
Copy link
Contributor

jreback commented May 13, 2014

yep...thats good..thanks!

always looking to consolidate code / eliminate special cases

@sinhrks sinhrks deleted the grouptz branch May 13, 2014 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Groupby Timezones Timezone data dtype
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tz info lost when creating multiindex
2 participants