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

Method operation

dask/dataframe/dask_expr/_cumulative.py:72–77  ·  view source on GitHub ↗
(a, skipna=True)

Source from the content-addressed store, hash-verified

70
71 @staticmethod
72 def operation(a, skipna=True):
73 if skipna:
74 if a.ndim == 1 and (a.empty or a.isna().all()):
75 return None
76 a = a.ffill()
77 return a.tail(n=1).squeeze()
78
79
80class CumulativeFinalize(Expr):

Callers

nothing calls this directly

Calls 5

allMethod · 0.45
isnaMethod · 0.45
ffillMethod · 0.45
squeezeMethod · 0.45
tailMethod · 0.45

Tested by

no test coverage detected