Skip to content

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

Closed
@jreback

Description

@jreback
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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugDatetimeDatetime data dtypeDtype ConversionsUnexpected or buggy dtype conversionsGroupbyRegressionFunctionality that used to work in a prior pandas version

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions