AllenDowney / ThinkBayes2

Text and code for the forthcoming second edition of Think Bayes, by Allen Downey.
http://allendowney.github.io/ThinkBayes2/
MIT License
1.8k stars 1.49k forks source link

gss_bayes.csv #60

Closed rcsmit closed 1 year ago

rcsmit commented 2 years ago

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)

nampole commented 1 year ago

please refer In[4] ==> notebook chap01

Load the data file

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')

AllenDowney commented 1 year ago

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!