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

Method _divisions

dask/dataframe/dask_expr/_expr.py:718–734  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

716 )
717
718 def _divisions(self):
719 # Unknown divisions
720 dfs = [arg for arg in self.args if isinstance(arg, Expr)]
721
722 if self.clear_divisions:
723 max_partitions = max(df.npartitions for df in dfs)
724 return (None,) * (max_partitions + 1)
725
726 # (Possibly) known divisions
727 return _get_divisions_map_partitions(
728 self.align_dataframes,
729 self.transform_divisions,
730 dfs,
731 self.func,
732 self.args,
733 self.kwargs,
734 )
735
736 @functools.cached_property
737 def _has_partition_info(self):

Callers

nothing calls this directly

Calls 2

maxFunction · 0.85

Tested by

no test coverage detected