Skip to content

Instantly share code, notes, and snippets.

@tommyhuang1
Created February 12, 2017 20:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tommyhuang1/0b5f6e30d8d578d791be52741039063e to your computer and use it in GitHub Desktop.
Save tommyhuang1/0b5f6e30d8d578d791be52741039063e to your computer and use it in GitHub Desktop.
Clonazepam-AvgRating
DataWithRating1 = clonazepam[clonazepam['Rating'].isnull()==False]
DataWithRating1.groupby('Condition').mean().sort_values("Rating", ascending=True).plot(fontsize=22,kind = 'barh',color = 'g',figsize=(20,15))
plt.xlabel('Average Rating', fontsize=25)
plt.ylabel('Condition', fontsize=25)
plt.title('Average Rating By Condition (Clonazepam)',fontsize= 30)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment