I need to find the frequency of elements in an unordered list
a = [1,1,1,1,2,2,2,2,3,3,4,5,5]
output->
b =
from collections import Counter a=["E","D","C","G","B","A","B","F","D","D","C","A","G","A","C","B","F","C","B"] counter=Counter(a) kk=[list(counter.keys()),list(counter.values())] pd.DataFrame(np.array(kk).T, columns=['Letter','Count'])