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

Function maybe_align_partitions

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

Source from the content-addressed store, hash-verified

4070
4071
4072def maybe_align_partitions(*exprs, divisions):
4073 from dask.dataframe.dask_expr._repartition import Repartition
4074
4075 return [
4076 (
4077 Repartition(df, new_divisions=divisions, force=True)
4078 if isinstance(df, Expr) and df.ndim > 0
4079 else df
4080 )
4081 for df in exprs
4082 ]
4083
4084
4085def _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