MCPcopy Index your code
hub / github.com/dask/dask / CombineFirstAlign

Class CombineFirstAlign

dask/dataframe/dask_expr/_expr.py:3595–3614  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3593
3594
3595class CombineFirstAlign(MaybeAlignPartitions):
3596 _parameters = ["frame", "other"]
3597 _expr_cls = CombineFirst
3598
3599 def _simplify_up(self, parent, dependents):
3600 # TODO: de-duplicate
3601 if isinstance(parent, Projection):
3602 columns = determine_column_projection(self, parent, dependents)
3603 frame_columns = [col for col in self.frame.columns if col in columns]
3604 other_columns = [col for col in self.other.columns if col in columns]
3605 if (
3606 self.frame.columns == frame_columns
3607 and self.other.columns == other_columns
3608 ):
3609 return
3610
3611 return type(parent)(
3612 type(self)(self.frame[frame_columns], self.other[other_columns]),
3613 *parent.operands[1:],
3614 )
3615
3616
3617class FillnaAlign(MaybeAlignPartitions):

Callers 1

combine_firstMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…