I have a dictionary with 7191
keys, and the values represent the frequency of each key.
degree_distri = {'F2': 102, 'EGFR': 23, 'C1R': 20,...}
To plot the histogram, I did:
plt.bar(list(degree_distri.keys()), degree_distri.values(), color='r')
but I got this error message:
unsupported operand type(s) for -: 'str' and 'float'
Should I not use the above code to plot the histogram? If not, what would be some of the suggestions? And why is it resulting in the error?
Thank you!