MCPcopy Create free account
hub / github.com/dask/dask / test_array_assignment

Function test_array_assignment

dask/dataframe/dask_expr/tests/test_collection.py:1438–1447  ·  view source on GitHub ↗
(df, pdf)

Source from the content-addressed store, hash-verified

1436
1437
1438def test_array_assignment(df, pdf):
1439 orig = df.copy()
1440
1441 arr = np.array(np.random.normal(size=100))
1442 darr = da.from_array(arr, chunks=10)
1443
1444 pdf["z"] = arr
1445 df["z"] = darr
1446 assert_eq(pdf, df)
1447 assert "z" not in orig.columns
1448
1449
1450def test_columns_assignment():

Callers

nothing calls this directly

Calls 3

assert_eqFunction · 0.90
copyMethod · 0.45
normalMethod · 0.45

Tested by

no test coverage detected