a = np.array([[0, 0, 1], [1, 2, 3], [3, 4, 5]]) #a.shape = (3,3)
How to replace each array in a
with its max value?
Excepted output - a = np.array([1, 2, 5]) #a.shape = (3,1)
Thanks
a = np.array([[0, 0, 1], [1, 2, 3], [3, 4, 5]]) #a.shape = (3,3)
How to replace each array in a
with its max value?
Excepted output - a = np.array([1, 2, 5]) #a.shape = (3,1)
Thanks