Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/dask/dask
/ test_setitem
Function
test_setitem
dask/dataframe/dask_expr/tests/test_collection.py:170–177 ·
view source on GitHub ↗
(pdf, df)
Source
from the content-addressed store, hash-verified
168
169
170
def
test_setitem(pdf, df):
171
pdf = pdf.copy()
172
pdf[
"z"
] = pdf.x + pdf.y
173
174
df[
"z"
] = df.x + df.y
175
176
assert
"z"
in df.columns
177
assert_eq(df, pdf)
178
179
180
def
test_set_index_blockwise_culling(df, pdf):
Callers
nothing calls this directly
Calls
2
assert_eq
Function · 0.90
copy
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…