nilai plot counta
data['title'].value_counts()[:20].plot(kind='barh')
Envious Earthworm
data['title'].value_counts()[:20].plot(kind='barh')
df = df.value_counts().rename_axis('unique_values').reset_index(name='counts')
print (df)
unique_values counts
0 2 3
1 1 2
df.letters.value_counts().sort_values().plot(kind = 'barh')
>>> pd.set_option("display.max_rows", None)