Skip to content

Instantly share code, notes, and snippets.

@tommyhuang1
Created February 12, 2017 20:10
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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