File not found error

I keep receiving this file not found error, whenever I try to load the CSV file into the pandas dataframe.

instead of pd.read_csv("trump_tweets.csv")
write the following code,

1 Like

Thank you, I will definitely try that!

Thank you, that worked! Do you think you can explained to me why that worked but my original code didn’t?

Hey @tarikkind21 sorry for the late reply,
As you asked your code is correct but the directory where the CSV file was present wasn’t correct, the file was present in the trump-tweets directory so to use read_csv in the file we need to first get in that directory, the directory path was saved in the data_dir (check your code above)
Hope I was able to help you.