Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dask/dask
/ test_setitem
Function
test_setitem
dask/dataframe/dask_expr/tests/test_collection.py:165–172 ·
view source on GitHub ↗
(pdf, df)
Source
from the content-addressed store, hash-verified
163
164
165
def
test_setitem(pdf, df):
166
pdf = pdf.copy()
167
pdf[
"z"
] = pdf.x + pdf.y
168
169
df[
"z"
] = df.x + df.y
170
171
assert
"z"
in df.columns
172
assert_eq(df, pdf)
173
174
175
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