unstack — Python array API standard 2023.12 documentation (original) (raw)

unstack(x: array, /, *, axis: int = 0) → Tuple[array, ...]

Splits an array into a sequence of arrays along the given axis.

Parameters:

Returns:

out (Tuple[array, …]) – tuple of slices along the given dimension. All the arrays have the same shape.

Notes

New in version 2023.12.