MCPcopy
hub / github.com/dask/dask / test_array_assignment

Function test_array_assignment

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

Source from the content-addressed store, hash-verified

1381
1382
1383def test_array_assignment(df, pdf):
1384 orig = df.copy()
1385
1386 arr = np.array(np.random.normal(size=100))
1387 darr = da.from_array(arr, chunks=10)
1388
1389 pdf["z"] = arr
1390 df["z"] = darr
1391 assert_eq(pdf, df)
1392 assert "z" not in orig.columns
1393
1394
1395def 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…