Last answered:

10 Mar 2024

Posted on:

07 May 2023

0

Resolved: Getting this error importing the dataset

getting this error importing the dataset

5 answers ( 2 marked as helpful)
Posted on:

07 May 2023

0

I think there is some error on path of the file!


Posted on:

09 May 2023

0

No worries I figured it out.

Instructor
Posted on:

09 May 2023

0

Hi Donald!
Thanks for reaching out.


I am glad that you have resolved your issue!

It seems that the issue was due to wrong directory.


Best,
Tsvetelin

Posted on:

10 Mar 2024

0

Hello Donald,

you can use this code instead in the lecture,


Here are a few steps you can take to resolve this issue:

Check the Current Working Directory: Ensure that the CSV file is in the same directory as your Jupyter notebook. You can check your current working directory by running:

import os
print(os.getcwd())



Verify the File Path: If the file is not in the current working directory, provide the full path to the file in the pd.read_csv() function, like so:
Python

 
data = pd.read_csv('full\path\to\Lending-company.csv', index_col='LoadnID')

lending_co_data= data.copy()
lending_co_data.head()

Posted on:

10 Mar 2024

0

it will be like that

Submit an answer