Back to Numerical Arrays (NumPy)
np.stack
Join a sequence of arrays along a new axis.
Syntax
np.stack(arrays, axis?)
Description
Join a sequence of arrays along a new axis.
Parameters
| Name | Description |
|---|---|
| arrays | - Sequence of arrays with the same shape |
| axis(optional) | - The axis in the result along which to stack (default: 0) |
Returns
NDArray