Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dask/dask
/ impl
Function
impl
dask/dataframe/tests/test_groupby.py:1724–1730 ·
view source on GitHub ↗
(s)
Source
from the content-addressed store, hash-verified
1722
1723
def
agg_mode(s):
1724
def
impl(s):
1725
(res,) = s.iloc[0]
1726
1727
for
(i,) in s.iloc[1:]:
1728
res = res.add(i, fill_value=0)
1729
1730
return
[res]
1731
1732
return
s.apply(impl, **INCLUDE_GROUPS)
1733
Callers
nothing calls this directly
Calls
1
add
Method · 0.45
Tested by
no test coverage detected