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

Update 03.10-Working-With-Strings.ipynb notebook to use local data dump of last known dump file. #249

Open
wants to merge 3 commits into
base: master
from

Conversation

@andrewm4894
Copy link

@andrewm4894 andrewm4894 commented Sep 1, 2020

It seems like the data used in this notebook (pulled in via curl) has gone away (its just an empty file as their export process broke and they did not have time/resources to fix it).

http://openrecipes.s3.amazonaws.com/recipeitems-latest.json.gz

This issue seems to suggest that last known good dump is still available here: https://s3.amazonaws.com/openrecipes/20170107-061401-recipeitems.json.gz

I have added that gz file to the data repo and changed one or two cells to use that instead (also means user on windows don't need the gunzip cli which caused trouble for some students we have using this).

I have also added some strange handling i had to do for pd.read_json() relating to pandas 1.1.1 as per this SO using StringIO(). Not quite sure exactly the details here and is a chance this part is a little 'hacky'.

The changes i have made might not quite be what you might do yourself but i just wanted to get this notebook 'working' for a some students we have at Springboard who use this notebook as an exercise in part of the course.

So figured i may aswell make a PR in case useful to you or anyone else.

andrewm4894 added 3 commits Sep 1, 2020
…ata in data folder as a 30mb gz file) and some handling for breaking changes to pd.read_json in most recent pandas it seems.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

1 participant
You can’t perform that action at this time.