Closed rcsmit closed 1 year ago
please refer In[4] ==> notebook chap01
from os.path import basename, exists
def download(url): filename = basename(url) if not exists(filename): from urllib.request import urlretrieve local, _ = urlretrieve(url, filename) print('Downloaded ' + local)
download('https://github.com/AllenDowney/BiteSizeBayes/raw/master/gss_bayes.csv')
Yeah, it would be better for all of the data to be in this repo, rather than pulling it in from another book.
For background (if anyone cares) I was totally wedged on a second edition of Think Bayes until I started working on Bite Size Bayes. Then I realized what I should do with Think Bayes, and the second edition came together smoothly. This data file is a vestige of the transitional form.
Anyway, it's fixed now. Thanks!
Should gss_bayes.csv (Chapter 1) be in /data ?
(found it at https://raw.githubusercontent.com/AllenDowney/BiteSizeBayes/master/gss_bayes.csv after opening the notebook BTW)