Skip to content

Instantly share code, notes, and snippets.

@tommyhuang1
Created February 12, 2017 20:04
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/dd30de0dc41eedfa7a0853185b3c4c22 to your computer and use it in GitHub Desktop.
Save tommyhuang1/dd30de0dc41eedfa7a0853185b3c4c22 to your computer and use it in GitHub Desktop.
Gabapentin-Review_Count_By_Condition
import pandas as pd
B = pd.read_csv('gabapentinData.csv')
import matplotlib.pyplot as plt
import seaborn as sns
%matplotlib inline
#matplotlib.style.use('ggplot')
B.groupby('Condition').size().sort_values(ascending=True).plot(kind='barh',fontsize=25,figsize=(20,15),sort_columns= True)
plt.xlabel('Review Count', fontsize=25)
plt.ylabel('Condition', fontsize=25)
plt.title('Review Count By Condition (Gabapentin)',fontsize= 30)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment