Created
February 12, 2017 20:04
-
-
Save tommyhuang1/dd30de0dc41eedfa7a0853185b3c4c22 to your computer and use it in GitHub Desktop.
Gabapentin-Review_Count_By_Condition
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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