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

Method _remove_common_columns

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

Source from the content-addressed store, hash-verified

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