Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gss_bayes.csv #60

Closed
rcsmit opened this issue Jul 5, 2022 · 2 comments
Closed

gss_bayes.csv #60

rcsmit opened this issue Jul 5, 2022 · 2 comments

Comments

@rcsmit
Copy link

rcsmit commented Jul 5, 2022

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
Copy link

nampole commented Feb 15, 2023

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
Copy link
Owner

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants