I have this code to make an array that shows the index of "frq_peak" that contains each elements of "F".
a =[]
for i in range(len(F)):
if i == 0:
a.append(np.where(frq_peak[6] == F[i]))
elif F[i] != F[i-1]:
a.append(np.where(frq_peak[6] == F[i]))
a
the problem is that "a" become a combination of multiple array but I want to have just one. what should I do?