Answer the question
In order to leave comments, you need to log in
How to download a CSV file from a link in Pandas?
Help me please. There is a link to the dataset https://www.kaggle.com/sulianova/cardiovascular-di... How to read this file correctly
using pd.read_csv in ipynb ?
df = pd.read_csv(' https://www.kaggle.com/sulianova/cardiovascular-di... ', sep = ';')
throws ParserError: Error tokenizing data. C error: Expected 1 fields in line 8, saw 2
Answer the question
In order to leave comments, you need to log in
In pandas.read_csv()
fact , you can pass a valid URL to download the dataset.
But your link only leads to a page with a description of the dataset. By clicking the "Download" button, they will also offer to log in. Those. this link is not good, you need a direct link to the download file.
Save it locally, maybe?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question