Skip to content

Instantly share code, notes, and snippets.

View HenrikEckermann's full-sized avatar

Henrik Eckermann HenrikEckermann

View GitHub Profile
@HenrikEckermann
HenrikEckermann / gist:1d334a44f61349ac71f0e235b3443a69
Created December 30, 2017 09:21
plot mean and error bars with plotnine
import pandas as pd
import numpy as np
from plotnine import *
#import data
bdf = pd.read_csv('http://www.stat.columbia.edu/~gelman/arm/examples/beauty/ProfEvaltnsBeautyPublic.csv')
#Rename btystdave to beauty for convenience
bdf.columns = ['beauty' if x=='btystdave' else x for x in bdf.columns]
bdf.info()