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

Function test_assign_not_modifying_array_inplace

dask/dataframe/tests/test_methods.py:9–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7
8
9def test_assign_not_modifying_array_inplace():
10 df = pd.DataFrame({"a": [1, 2, 3], "b": 1.5})
11 result = methods.assign(df, "a", 5)
12 assert not np.shares_memory(df["a"].values, result["a"].values)
13 assert np.shares_memory(df["b"].values, result["b"].values)

Callers

nothing calls this directly

Calls 1

assignMethod · 0.80

Tested by

no test coverage detected