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

Function test_attribute_assignment

dask/dataframe/tests/test_dataframe.py:3658–3663  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3656
3657
3658def test_attribute_assignment():
3659 df = pd.DataFrame({"x": [1, 2, 3, 4, 5], "y": [1.0, 2.0, 3.0, 4.0, 5.0]})
3660 ddf = dd.from_pandas(df, npartitions=2)
3661
3662 ddf.y = ddf.x + ddf.y
3663 assert_eq(ddf, df.assign(y=df.x + df.y))
3664
3665
3666def test_setitem_triggering_realign():

Callers

nothing calls this directly

Calls 2

assignMethod · 0.95
assert_eqFunction · 0.90

Tested by

no test coverage detected