np_split
Split an array into multiple sub-arrays along a given axis, either into equal sections or at specified indices.
Instructions
Split an array into multiple sub-arrays.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| array | Yes | The array to split. | |
| indices_or_sections | Yes | If an int, the number of equal sections. If a list, the indices at which to split. | |
| axis | No | The axis along which to split (default: 0). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |