Vivian
2/13/2020 - 1:19 PM

sort bar chart with counts

sns.catplot(x='country_code', y='n_order',hue='has_note', data=df_country, kind='bar',order=df_dl['country_code'].value_counts().index)

# get order of counts
order=df_dl['country_code'].value_counts().index