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

Method _remove_common_columns

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

Source from the content-addressed store, hash-verified

1998 return self.operands
1999
2000 def _remove_common_columns(self, other):
2001 if set(self.keys) & set(other.keys):
2002 keys = set(self.keys)
2003 operands = [[k, v] for k, v in zip(other.keys, other.vals) if k not in keys]
2004 return [other.frame] + list(flatten(operands)) + self.operands[1:]
2005 else:
2006 return other.operands + self.operands[1:]
2007
2008 def _simplify_down(self):
2009 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