Issue
I imported these libraries and trying to read a CSV file on my desktop
import pandas as pd
import numpy as np
df = pd.read_csv('/Users/yoshithKotla/Desktop/canal/verymimi_M.csv')
But I get an error saying
FileNotFoundError: [Errno 2] No such file or directory: '/Users/yoshithKotla/Desktop/canal/verymimi_onlytweets_M'
Solution
Actually you have to specify a complete path(Absolute path) like this :
C:/Users/yoshithKotla/Desktop/canal/verymimi_M.csv
If you do
/Users/yoshithKotla/Desktop/canal/verymimi_M.csv
then It will search for Users
folder in working directory, which is not there so, you're getting that error.
Answered By - Xitiz
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.