loadtxt doubt
Title
Question
In [50]: L=loadtxt("C:\Users\Monish Naware\Desktop\Archana\Python\football.txt",usecols=(1,2),delimiter=',')
File "<ipython-input-50-5d5ba460b8bf>", line 1
L=loadtxt("C:\Users\Monish Naware\Desktop\Archana\Python\football.txt",usecols=(1,2),delimiter=',')
^
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape
Python-3.4.3 Statistics 07-08 min 0-10 sec
Answers:
L=loadtxt("C:\\Users\\Monish Naware\\Desktop\\Archana\\Python\\football.txt",usecols=(1,2),delimiter=',')
Try this command. It seems the error was because of the path.
Login to add comment