Tag: Subarray
Select Subarray By Index from NumPy Array
In this article we will discuss how to select an element or a sub array from a Numpy Array by index. Let’s create a Numpy Array using numpy.arange() Advertisements # Create a numpy ndArray npArray = np.arange(1, 20, 2) print(npArray) Contents of the Numpy Array is as follows, [ 1 3 5 7 9 11 …