I have a very long list of IDs (IDs are string values. I want to plot a histogram of this list. There are some codes in other threads on stackoverflow for plotting a histogram but the histogram I want should look like this picture (i.e. highest values are in the left side and the values gradually decrease when x-axis increase.
This is the code for plotting regular histogram
import pandas
from collections import Counter
items=a long list of strings
letter_counts = Counter(items)
df = pandas.DataFrame.from_dict(letter_counts, orient='index')
df.plot(kind='bar')

matplotlibcan read or how to format the histogram once you've read the data and converted it to numerical values?