May-10-2018, 08:37 AM
Hi everyone,
I cannot seem to import data (I'm using spyder). I do the following code:
for that code I get the error:
FileNotFoundError: File b'Python for Data Analysis/chap 6.csv' does not exist
I also try the full path:
I get the error:
data = pd.read_csv('C:\Users\SGrah\OneDrive\Documents\Python Scripts\Python for Data Analysis\chap 6.csv')
^
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape
Any help is appreciated.
Thanks
I cannot seem to import data (I'm using spyder). I do the following code:
data = pd.read_csv('Python for Data Analysis/chap 6.csv' data.head()
for that code I get the error:
FileNotFoundError: File b'Python for Data Analysis/chap 6.csv' does not exist
I also try the full path:
data = pd.read_csv('C:\Users\SGrah\OneDrive\Documents\Python Scripts\Python for Data Analysis/chap 6.csv' data.head()
I get the error:
data = pd.read_csv('C:\Users\SGrah\OneDrive\Documents\Python Scripts\Python for Data Analysis\chap 6.csv')
^
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape
Any help is appreciated.
Thanks