pd.read_csv("C:\Users\thesa\OneDrive\Desktop\Data Sets\datasets-session-16\subs.csv")
I was trying to read a csv file in jupyter notebook using pandas, but it is not working.
pd.read_csv("C:\Users\thesa\OneDrive\Desktop\Data Sets\datasets-session-16\subs.csv")
I was trying to read a csv file in jupyter notebook using pandas, but it is not working.
Your problem is with the string
Here, \U in "C:\Users... starts an eight-character Unicode escape, such as \U00014321.
you can double the backslashes Or prefix the string with r
pd.read_csv("C:\\Users\\thesa\\OneDrive\\Desktop\\Data Sets\\datasets-session-16\\subs.csv")
pd.read_csv(r"C:\Users\thesa\OneDrive\Desktop\Data Sets\datasets-session-16\subs.csv")