Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dask/dask
/ index_count
Function
index_count
dask/dataframe/methods.py:135–137 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
133
134
135
def
index_count(x):
136
# Workaround since Index doesn't implement `.count`
137
return
pd.notnull(x).sum()
138
139
140
def
mean_aggregate(s, n):
Callers
nothing calls this directly
Calls
2
notnull
Method · 0.80
sum
Method · 0.45
Tested by
no test coverage detected