Introduction to Data Analysis in Python

In [1]:
import pandas as pd

tips = pd.read_csv("https://milliams.com/courses/data_analysis_python/tips.csv")
In [2]:
bill_per_person = tips["total_bill"] / tips["size"]
bill_per_person
Out[2]:
0       8.495000
1       3.446667
2       7.003333
3      11.840000
4       6.147500
         ...    
239     9.676667
240    13.590000
241    11.335000
242     8.910000
243     9.390000
Length: 244, dtype: float64
In [3]:
bill_per_person.mean()
Out[3]:
7.888229508196722
In [4]:
bill_per_person.std()
Out[4]:
2.9143496626221