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

Method _remove_common_columns

dask/dataframe/dask_expr/_expr.py:2020–2026  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

2018 return self.operands
2019
2020 def _remove_common_columns(self, other):
2021 if set(self.keys) & set(other.keys):
2022 keys = set(self.keys)
2023 operands = [[k, v] for k, v in zip(other.keys, other.vals) if k not in keys]
2024 return [other.frame] + list(flatten(operands)) + self.operands[1:]
2025 else:
2026 return other.operands + self.operands[1:]
2027
2028 def _simplify_down(self):
2029 if isinstance(self.frame, Assign):

Callers 1

_simplify_downMethod · 0.95

Calls 2

flattenFunction · 0.90
setClass · 0.85

Tested by

no test coverage detected