Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Groupby aggregation of date/datetime columns returns datetime64 rather than numeric type #11444
Comments
michaelbilow
closed this
Oct 27, 2015
michaelbilow
reopened this
Oct 27, 2015
|
this is a dupe of #10972 thanks for the report |
jreback
closed this
Oct 27, 2015
jreback
added Timeseries Groupby
labels
Oct 27, 2015
TomAugspurger
referenced
this issue
Oct 27, 2015
Closed
BUG: output of a transform is cast to dtype of input #10972
jreback
added this to the
0.20.0
milestone
Feb 27, 2017
jreback
added a commit
to jreback/pandas
that referenced
this issue
Feb 27, 2017
|
|
jreback |
69356d8
|
jreback
added a commit
to jreback/pandas
that referenced
this issue
Feb 27, 2017
|
|
jreback |
6a90819
|
jreback
added a commit
to jreback/pandas
that referenced
this issue
Feb 27, 2017
|
|
jreback |
11cb51f
|
jreback
added a commit
to jreback/pandas
that referenced
this issue
Feb 27, 2017
|
|
jreback |
61fa8be
|
AnkurDedania
added a commit
to AnkurDedania/pandas
that referenced
this issue
Mar 21, 2017
|
|
jreback + AnkurDedania |
d18d0b4
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
michaelbilow commentedOct 27, 2015
You can fix the problem by casting the dates to strings before groupby/agg, but if you try to cast the returned datetimes to ints, errors go off in some versions of pandas. Either way, aggregating by length should always return an int. Also, this may be similar to #11442, which was just posted.