Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pandas-dev/pandas
/ time_lambda_sum
Method
time_lambda_sum
asv_bench/benchmarks/groupby.py:374–375 ·
view source on GitHub ↗
(self, df)
Source
from the content-addressed store, hash-verified
372
return
df
373
374
def
time_lambda_sum(self, df):
375
df.groupby([
"key1"
,
"key2"
]).agg(
lambda
x: x.values.sum())
376
377
def
time_cython_sum(self, df):
378
df.groupby([
"key1"
,
"key2"
]).sum()
Callers
nothing calls this directly
Calls
3
agg
Method · 0.45
groupby
Method · 0.45
sum
Method · 0.45
Tested by
no test coverage detected