Resolved: Getting this error importing the dataset
getting this error importing the dataset
I think there is some error on path of the file!
No worries I figured it out.
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
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()
it will be like that