-
-
Notifications
You must be signed in to change notification settings - Fork 18.9k
Closed
Labels
EnhancementGroupbyPerformanceMemory or execution speed performanceMemory or execution speed performance
Description
alias len/size
to groupby.transform
speedup table (as these are already implemented as size
,`count`` in cython, just a matter of transforming them
see here: http://stackoverflow.com/questions/24438273/aggregation-on-pandas-datetime-series-only-returns-as-datetime-series/24438366#24438366
(len
is suspect for .agg
as well)
so
g = df.groupby(...)
g.transform(len)
g.transform('size')
g.transform('len')
will do the same
Metadata
Metadata
Assignees
Labels
EnhancementGroupbyPerformanceMemory or execution speed performanceMemory or execution speed performance