(pdf, df)
| 93 | |
| 94 | |
| 95 | def test_concat_simplify(pdf, df): |
| 96 | pdf2 = pdf.copy() |
| 97 | pdf2["z"] = 1 |
| 98 | df2 = from_pandas(pdf2) |
| 99 | q = concat([df, df2])[["z", "x"]] |
| 100 | result = q.simplify() |
| 101 | expected = concat([df[["x"]], df2[["x", "z"]]]).simplify()[["z", "x"]] |
| 102 | assert result._name == expected._name |
| 103 | |
| 104 | assert_eq(q, pd.concat([pdf, pdf2])[["z", "x"]]) |
| 105 | |
| 106 | |
| 107 | def test_concat_simplify_projection_not_added(pdf, df): |
nothing calls this directly
no test coverage detected
searching dependent graphs…