(pdf, df)
| 1117 | |
| 1118 | @pytest.mark.skipif(not PANDAS_GE_220, reason="not implemented") |
| 1119 | def test_case_when(pdf, df): |
| 1120 | result = df.x.case_when([(df.x.eq(1), 1), (df.y == 10, 2.5)]) |
| 1121 | expected = pdf.x.case_when([(pdf.x.eq(1), 1), (pdf.y == 10, 2.5)]) |
| 1122 | assert_eq(result, expected) |
| 1123 | |
| 1124 | |
| 1125 | def test_head_head(df): |