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

sns.displot(data=tips, x="bill_per_person", hue="time", kind="kde", common_norm=False)
Out[3]:
<seaborn.axisgrid.FacetGrid at 0x7f3e9c47cee0>