File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -381,15 +381,15 @@ an API of the Nobel prize organisation at
381381https://api.nobelprize.org/v1/laureate.csv .
382382
383383Unfortunately this API does not allow "non-browser requests", so
384- :obj: `pandas.read_csv ` will not work. We can either open the above link in
385- a browser and download the file, or use the JupyterLab interface by clicking
386- "File" and "Open from URL", and then save the CSV file to disk.
384+ :obj: `pandas.read_csv ` will not work directly on it. Instead, we put a
385+ local copy on Github which we can access (the original data is CC-0,
386+ so we are allowed to do this). (Aside: if you do JupyterLab →
387+ File → Open from URL → paste the URL above, it will open it in
388+ JupyterLab *and * download a copy for your use.)
387389
388390We can then load and explore the data::
389391
390- # File → Open from URL → enter https://api.nobelprize.org/v1/laureate.csv
391- # This opens it in JupyterLab but also saves it as laureate.csv
392- nobel = pd.read_csv("laureate.csv")
392+ nobel = pd.read_csv("https://github.com/AaltoSciComp/python-for-scicomp/raw/master/resources/data/laureate.csv")
393393 nobel.head()
394394
395395This dataset has three columns for time, "born"/"died" and "year".
You can’t perform that action at this time.
0 commit comments