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

Method _partitions

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

Source from the content-addressed store, hash-verified

2620
2621 @property
2622 def _partitions(self):
2623 if isinstance(self, PartitionsFiltered):
2624 partitions = self.frame._partitions
2625 else:
2626 partitions = list(range(self.frame.npartitions))
2627 if self.operand("npartitions") > -1:
2628 partitions = partitions[: self.operand("npartitions")]
2629 return partitions
2630
2631
2632class BlockwiseHead(Head, Blockwise):

Callers

nothing calls this directly

Calls 1

operandMethod · 0.80

Tested by

no test coverage detected