(self, caselist)
| 4641 | |
| 4642 | @derived_from(pd.Series) |
| 4643 | def case_when(self, caselist): |
| 4644 | if not isinstance(caselist, list): |
| 4645 | raise TypeError("The caselist argument should be a list") |
| 4646 | caselist = list(flatten([[c, v] for c, v in caselist], container=list)) |
| 4647 | return new_collection(expr.CaseWhen(self, *caselist)) |
| 4648 | |
| 4649 | |
| 4650 | for name in [ |