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