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

Method _simplify_down

dask/dataframe/dask_expr/_expr.py:1933–1938  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1931 _preserves_partitioning_information = True
1932
1933 def _simplify_down(self):
1934 col_op = self.operand("columns")
1935 if is_scalar(col_op):
1936 col_op = [col_op]
1937 columns = [col for col in self.frame.columns if col not in col_op]
1938 return Projection(self.frame, columns)
1939
1940
1941def assign(df, *pairs):

Callers

nothing calls this directly

Calls 3

is_scalarFunction · 0.90
ProjectionClass · 0.85
operandMethod · 0.80

Tested by

no test coverage detected