(pdf, df)
| 1169 | |
| 1170 | @pytest.mark.skipif(not PANDAS_GE_220, reason="not implemented") |
| 1171 | def test_case_when(pdf, df): |
| 1172 | result = df.x.case_when([(df.x.eq(1), 1), (df.y == 10, 2.5)]) |
| 1173 | expected = pdf.x.case_when([(pdf.x.eq(1), 1), (pdf.y == 10, 2.5)]) |
| 1174 | assert_eq(result, expected) |
| 1175 | |
| 1176 | |
| 1177 | def test_head_head(df): |