Adding/removing Elements
- | - |
---|---|
np.append(arr,values) |
Appends values to end of arr |
np.insert(arr,2,values) |
Inserts values into arr before index 2 |
np.delete(arr,3,axis=0) |
Deletes row on index 3 of arr |
np.delete(arr,4,axis=1) |
Deletes column on index 4 of arr |
Comments
Related