stack#
- named_arrays.stack(arrays, axis, out=None, *, dtype=None, casting='same_kind')#
Stack the given arrays along a new axis.
- Parameters:
arrays (Sequence[int | float | complex | ndarray | Quantity | AbstractArray]) – A sequence of arrays to combine into a new array.
axis (str) – The name of the new axis along which to stack.
out (None | AbstractExplicitArray) – An optional array in which to place the output.
dtype (str | dtype | Type) – The data type of the new array.
casting (None | str) – The casting rule to follow when combining arrays of different dtypes.
- Return type:
See also
numpy.stack()Corresponding
numpyfunction.