Back to Numerical Arrays (NumPy)
np.put_along_axis
Put values into the destination array by matching 1d index and data slices.
Syntax
np.put_along_axis(arr, indicesArr, values, axis)
Description
Put values into the destination array by matching 1d index and data slices.
Parameters
| Name | Description |
|---|---|
| arr | - Destination array (modified in place) |
| indicesArr | NDArray |
| values | - Values to put |
| axis | - The axis to put along |
Returns
Promise<void>