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

Method _simplify_down

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

Source from the content-addressed store, hash-verified

1947 _preserves_partitioning_information = True
1948
1949 def _simplify_down(self):
1950 col_op = self.operand("columns")
1951 if is_scalar(col_op):
1952 col_op = [col_op]
1953 columns = [col for col in self.frame.columns if col not in col_op]
1954 return Projection(self.frame, columns)
1955
1956 @staticmethod
1957 def operation(df, columns, errors):

Callers

nothing calls this directly

Calls 3

is_scalarFunction · 0.90
ProjectionClass · 0.85
operandMethod · 0.80

Tested by

no test coverage detected