Skip to content
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

BUG: groupby with datetime and cythonized functions regression from 0.12 #5869

Closed
jreback opened this issue Jan 7, 2014 · 0 comments · Fixed by #5870
Closed

BUG: groupby with datetime and cythonized functions regression from 0.12 #5869

jreback opened this issue Jan 7, 2014 · 0 comments · Fixed by #5870
Labels
Bug Dtype Conversions Unexpected or buggy dtype conversions Groupby Regression Functionality that used to work in a prior pandas version Timeseries
Milestone

Comments

@jreback
Copy link
Contributor

jreback commented Jan 7, 2014

In [30]: DataFrame(dict(A = Timestamp('20130101'), B = np.arange(5))).groupby('A')['A'].max()
Out[30]: 
A
2013-01-01    1356998400000000000
Name: A, dtype: int64

should match

In [31]: DataFrame(dict(A = Timestamp('20130101'), B = np.arange(5))).groupby('A')['A'].apply(lambda x: x.max())
Out[31]: 
A
2013-01-01   2013-01-01 00:00:00
dtype: datetime64[ns]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Dtype Conversions Unexpected or buggy dtype conversions Groupby Regression Functionality that used to work in a prior pandas version Timeseries
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant