In [ ]:
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
plt.style.use('ggplot')
import dateutil.parser
import math

In [ ]:
# Let's build a data set
reviews_df = pd.DataFrame([
 { 'restaurant': 'Burger King', 'reviewer': 'Jeff', 'yelp_stars': 2 } ,
 { 'restaurant': 'Burger King', 'reviewer': 'Jen', 'yelp_stars': 2 },
 { 'restaurant': 'Burger King', 'reviewer': 'James', 'yelp_stars': 5 },
 { 'restaurant': 'Burger King', 'reviewer': 'John', 'yelp_stars': 4 },
 { 'restaurant': 'Burger King', 'reviewer': 'Josephine', 'yelp_stars': 4 },
 { 'restaurant': 'Burger King', 'reviewer': 'Jacques', 'yelp_stars': 3 },
 { 'restaurant': 'Burger King', 'reviewer': 'Jill', 'yelp_stars': 2 }    
])
reviews_df