Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pandas-dev/pandas
/ test_length_of_indexer
Function
test_length_of_indexer
pandas/tests/indexing/test_indexers.py:12–16 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
10
11
12
def
test_length_of_indexer():
13
arr = np.zeros(4, dtype=bool)
14
arr[0] = 1
15
result = length_of_indexer(arr)
16
assert result == 1
17
18
19
def
test_is_scalar_indexer():
Callers
nothing calls this directly
Calls
1
length_of_indexer
Function · 0.90
Tested by
no test coverage detected