Aug-01-2021, 12:29 PM
You can test the file exists,
import os import pandas as pd myfile = r"C:\Users\hakjo\PycharmProjects\jm1\sentiment-test.crv" if os.path.isfile(myfile): df=pd.read_csv(myfile) print(df) else: print(f"file {myfile} does not exist")maybe you can also use
myfile = "C:/Users/hakjo/PycharmProjects/m1/sentiment-test.crv"