numpy.delete()
numpy.delete
-
numpy.delete(arr, obj, axis=None)
[source] -
Return a new array with sub-arrays along an axis deleted. For a one dimensional array, this returns those entries not returned by
arr[obj]
.Parameters: arr : array_like
Input array.
obj : slice, int or array of ints
Indicate which sub-arrays to remove.
axis : int, optional
The axis along which to delete the subarray defined b