Back to Numerical Arrays (NumPy)
np.resize
Return a new array with the specified shape.
Syntax
np.resize(arr, new_shape)
Description
Return a new array with the specified shape. If the new array is larger than the original, it is filled with repeated copies.
Parameters
| Name | Description |
|---|---|
| arr | - Input array |
| new_shape | - Shape of the resized array |
Returns
Promise<NDArray>