Combining/splitting
- | - |
---|---|
np.concatenate((arr1,arr2),axis=0) |
Adds arr2 as rows to the end of arr1 |
np.concatenate((arr1,arr2),axis=1) |
Adds arr2 as columns to end of arr1 |
np.split(arr,3) |
Splits arr into 3 sub-arrays |
np.hsplit(arr,5) |
Splits arr horizontally on the 5th index |
Comments
Related