Skip to content

Instantly share code, notes, and snippets.

@tommyhuang1
Created February 12, 2017 20:12
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/776abfea93dc12ec0357c6b8fafe0752 to your computer and use it in GitHub Desktop.
Save tommyhuang1/776abfea93dc12ec0357c6b8fafe0752 to your computer and use it in GitHub Desktop.
Gabapentin-AvgRating
DataWithRating = B[B['Rating'].isnull()==False]
DataWithRating.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 (Gabapentin)',fontsize= 30)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment