ak.partitions

Defined in awkward.operations.structure on line 3801.

ak.partitions(array)
Parameters

array – A possibly-partitioned array.

Returns a list of partition lengths if the array is a PartitionedArray; returns None otherwise.

Partitioning is an internal aspect of an array: it should behave identically to a non-partitioned array, but possibly with different performance characteristics.

Arrays can only be partitioned in the first dimension; it is intended for performing calculations in memory-sized chunks.