open_in_new
content_copy
df.groupby('name')['n'].sum().plot(kind='bar', x='name')