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

Function test_assign_callable

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

Source from the content-addressed store, hash-verified

1638
1639
1640def test_assign_callable():
1641 df = dd.from_pandas(pd.DataFrame({"A": range(10)}), npartitions=2)
1642 a = df.assign(B=df.A.shift())
1643 b = df.assign(B=lambda x: x.A.shift())
1644 assert_eq(a, b)
1645
1646
1647def test_assign_dtypes():

Callers

nothing calls this directly

Calls 3

assert_eqFunction · 0.90
assignMethod · 0.80
shiftMethod · 0.45

Tested by

no test coverage detected