Back to Numerical Arrays (NumPy)
np.block
Assemble an nd-array from nested lists of blocks.
Syntax
np.block(arrays)
Description
Assemble an nd-array from nested lists of blocks.
Parameters
| Name | Description |
|---|---|
| arrays | - Nested list of arrays (1D list for hstack, 2D for block assembly) |
Returns
NDArray