()
| 1405 | |
| 1406 | |
| 1407 | def test_columns_assignment(): |
| 1408 | df = pd.DataFrame({"x": [1, 2, 3, 4]}) |
| 1409 | ddf = from_pandas(df, npartitions=2) |
| 1410 | |
| 1411 | df2 = df.assign(y=df.x + 1, z=df.x - 1) |
| 1412 | df[["a", "b"]] = df2[["y", "z"]] |
| 1413 | |
| 1414 | ddf2 = ddf.assign(y=ddf.x + 1, z=ddf.x - 1) |
| 1415 | ddf[["a", "b"]] = ddf2[["y", "z"]] |
| 1416 | |
| 1417 | assert_eq(df, ddf) |
| 1418 | |
| 1419 | |
| 1420 | def test_parent_mixed_column_assignment(): |
nothing calls this directly
no test coverage detected