MCPcopy Create free account
hub / github.com/dask/dask / case_when

Method case_when

dask/dataframe/dask_expr/_collection.py:4602–4606  ·  view source on GitHub ↗
(self, caselist)

Source from the content-addressed store, hash-verified

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
4609for name in [

Callers 3

_metaMethod · 0.80
operationMethod · 0.80
test_case_whenFunction · 0.80

Calls 2

flattenFunction · 0.90
new_collectionFunction · 0.90

Tested by 1

test_case_whenFunction · 0.64