简体   繁体   中英

<urlopen error [Errno 54] Connection reset by peer>

I want to read csv file from website. The link exists, but it raises an error

My code is:

pd.read_csv("https://data.cityofnewyork.us/api/views/kku6-nxdu/rows.csv")

and an error is:

<urlopen error [Errno 54] Connection reset by peer> .

UPDATE: I tried another link, with smaller dataset, and it executes with no problem. I guess, maybe wrong, error is raised due to bigger dataset.

So how to deal with the link above then?

It works for me; it might be caused by your general network settings.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM