This code if regarding finding the element with a maximum frequency in the array.
what is the logic behind writing b[0][idx] here?
idx = np.argmax(b[1]) #Index with highest freq
element = b[0][idx]
print(element)
This code if regarding finding the element with a maximum frequency in the array.
what is the logic behind writing b[0][idx] here?
idx = np.argmax(b[1]) #Index with highest freq
element = b[0][idx]
print(element)