(pdf, df)
| 87 | |
| 88 | |
| 89 | def test_concat_simplify(pdf, df): |
| 90 | pdf2 = pdf.copy() |
| 91 | pdf2["z"] = 1 |
| 92 | df2 = from_pandas(pdf2) |
| 93 | q = concat([df, df2])[["z", "x"]] |
| 94 | result = q.simplify() |
| 95 | expected = concat([df[["x"]], df2[["x", "z"]]]).simplify()[["z", "x"]] |
| 96 | assert result._name == expected._name |
| 97 | |
| 98 | assert_eq(q, pd.concat([pdf, pdf2])[["z", "x"]]) |
| 99 | |
| 100 | |
| 101 | def test_concat_simplify_projection_not_added(pdf, df): |
nothing calls this directly
no test coverage detected