pandas plot value counts barplot in descending manner [duplicate]

You can do it by changing your plotting line like this

df.letters.value_counts().sort_values().plot(kind = 'barh')

Leave a Comment