(self, caselist)
| 4600 | |
| 4601 | @derived_from(pd.Series) |
| 4602 | def case_when(self, caselist): |
| 4603 | if not isinstance(caselist, list): |
| 4604 | raise TypeError("The caselist argument should be a list") |
| 4605 | caselist = list(flatten([[c, v] for c, v in caselist], container=list)) |
| 4606 | return new_collection(expr.CaseWhen(self, *caselist)) |
| 4607 | |
| 4608 | |
| 4609 | for name in [ |