Diabetes Detectuion Challenge - Can't read .csv file

Getting error while reading the csv file…ho wto overcome it?

http://localhost:8888/notebooks/Machine%20Learning/KNN%20Algorithm/Challenge%20-%20Diabetes%20Classification.ipynb

dfx = pd.read_csv(‘http://localhost:8888/edit/Downloads/Diabetes_XTrain.csv’)
dfy = pd.read_csv(‘http://localhost:8888/edit/Downloads/Diabetes_YTrain.csv’)

hey @pranav.shekhar314 ,
read_csv needs path to read the file from.
and you are providing it a wrong path.

localhost exists for only local servers , and read_csv can’t access them.
Just store the files in the same folder of your code and provide the path as filenames with extension.

It will work.

I m still having troubles doing the same…Please tell me what to do. I saved the training data in the same folder but still the same error is occuring.

Should I upload training data on github and then read the file?

kindly upload your code and files on github .
Will help You out of it.

1 Like

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.