()
| 1638 | |
| 1639 | |
| 1640 | def 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 | |
| 1647 | def test_assign_dtypes(): |