(self, caselist)
| 4676 | |
| 4677 | @derived_from(pd.Series) |
| 4678 | def case_when(self, caselist): |
| 4679 | if not isinstance(caselist, list): |
| 4680 | raise TypeError("The caselist argument should be a list") |
| 4681 | caselist = list(flatten([[c, v] for c, v in caselist], container=list)) |
| 4682 | return new_collection(expr.CaseWhen(self, *caselist)) |
| 4683 | |
| 4684 | |
| 4685 | for name in [ |