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

Method case_when

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

Source from the content-addressed store, hash-verified

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
4650for 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