I didnt understand about return count ="True" and argmax

i want to ask what is return count and when we use idx =argmax(b[1]) so how we use b[0][idx] its confusing can u explain pl

Hey @Ashmeet-Singh-1289054874617699, Let me explain this by an example,
Original array:
a = [10 10 20 10 20 20 20 30 30 50 40 40]
Frequency of unique values of the said array:
b = np.unique(a, return_counts = True)
[[10 20 30 40 50]
[ 3 4 2 2 1]]

now b[0] = [10 20 30 40 50]
b[1]= [ 3 4 2 2 1]

idx =argmax(b[1]) = index of maximum value, = 1
b[0][1] = 20 = value having maximum count.

Hope this resolved your doubt. :blush: