logo

... smoking: the dataset



Notes

This dataset is listed in the datasets portion of our website. You can also download it directly here.

We assume that it is saved in a downloads folder on a mac. Double check that you change the code if you save it somewhere else.

import pandas as pd
import matplotlib.pylab as plt

df = pd.read_csv("~/Downloads/smoking.csv")

Feedback? See an issue? Something unclear? Feel free to mention it here.



If you want to be kept up to date, consider signing up for the newsletter.