Ans. In order to find the maximum value from each row in a 2D numpy array, we will use the amax() function as follows –
np.amax(input, axis=1)
Where numpy is imported as np and input is the input array.
Ans. In order to find the maximum value from each row in a 2D numpy array, we will use the amax() function as follows –
np.amax(input, axis=1)
Where numpy is imported as np and input is the input array.
by
Tags:
Leave a Reply