covid19datahub / COVID19

A worldwide epidemiological database for COVID-19 at fine-grained spatial resolution
https://covid19datahub.io
GNU General Public License v3.0
251 stars 92 forks source link

Python added to tutorials (vignettes) #47

Closed martinbenes1996 closed 4 years ago

eguidotti commented 4 years ago

In the latest version of pandas you should be able to pass the url directly, something like

import pandas as pd

url = "https://storage.covid19datahub.io/data-1.csv"
x = pd.read_csv(url)

Would you mind to check? Thanks

martinbenes1996 commented 4 years ago

Tried. The server responded 403. It worked only with the added header.

eguidotti commented 4 years ago

Alright, maybe worth to put a link to this issue here? https://datascience.stackexchange.com/questions/49751/read-csv-file-directly-from-url-how-to-fix-a-403-forbidden-error

eguidotti commented 4 years ago

Great thanks!