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]:
tips["bill_per_person"] = tips["total_bill"] / tips["size"]
In [3]:
import seaborn as sns
In [4]:
sns.catplot(data=tips, x="day", y="bill_per_person", order=["Thur", "Fri", "Sat", "Sun"], kind="box")
Out[4]:
<seaborn.axisgrid.FacetGrid at 0x7fe5b30b4ac0>
In [5]:
sns.catplot(data=tips, x="day", y="size", order=["Thur", "Fri", "Sat", "Sun"], kind="violin")
Out[5]:
<seaborn.axisgrid.FacetGrid at 0x7fe5f806f790>