how to get max index 2d array numpy code example Example: find max value in 2d array python a = [1, 2, 3, 4, 5] print(max(a)) # 5