Topic starter 06/10/2021 10:21 pm
[Answer]
This error occurs because you are using a normal string as a path. You can use one of the three following solutions to fix your problem:
Just put r before your normal string it converts normal string to raw string:
pandas.read_csv(r"C:\Users\mytechmint\Desktop\data_file.csv")
OR
pandas.read_csv("C:/Users/mytechmint/Desktop/data_file.csv")
OR
pandas.read_csv("C:\\Users\\mytechmint\\Desktop\\data_file.csv")
Neha liked