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

Function maybe_align_partitions

dask/dataframe/dask_expr/_expr.py:4116–4126  ·  view source on GitHub ↗
(*exprs, divisions)

Source from the content-addressed store, hash-verified

4114
4115
4116def maybe_align_partitions(*exprs, divisions):
4117 from dask.dataframe.dask_expr._repartition import Repartition
4118
4119 return [
4120 (
4121 Repartition(df, new_divisions=divisions, force=True)
4122 if isinstance(df, Expr) and df.ndim > 0
4123 else df
4124 )
4125 for df in exprs
4126 ]
4127
4128
4129def _extract_meta(x, nonempty=False):

Callers 3

_lowerMethod · 0.85
_lowerMethod · 0.85
_lowerMethod · 0.85

Calls 1

RepartitionClass · 0.90

Tested by

no test coverage detected