graph count by year pandas code example Example: plot value counta data['title'].value_counts()[:20].plot(kind='barh')