Skip to content

Instantly share code, notes, and snippets.

@tommyhuang1
Created February 12, 2017 20:10
Show Gist options
  • Save tommyhuang1/1a54e1251acf3921dff2fd585f79ea18 to your computer and use it in GitHub Desktop.
Save tommyhuang1/1a54e1251acf3921dff2fd585f79ea18 to your computer and use it in GitHub Desktop.
Pregabalin-ReviewCountByCondition
import pandas as pd
Pregabalin = pd.read_csv('PregabalinData.csv')
import matplotlib.pyplot as plt
import seaborn as sns
%matplotlib inline
Pregabalin.groupby('Condition').size().sort_values(ascending=True).plot(kind='barh',fontsize=25,figsize=(13,10),sort_columns= True)
plt.xlabel('Review Count', fontsize=25)
plt.ylabel('Condition', fontsize=25)
plt.title('Review Count By Condition (Pregabalin)',fontsize= 25)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment