Getting error in cat and loadtxt
Title
Question
Dear Sir,
I place of 'cat command' I am using' %pycat command' to fetch the data in Command Prompt.Is it correct?
I am operating python in Windows 10 and while running the loadtxt command i am continuously getting error
year,profit= loadtxt('C:\Users\Manisha\Desktop\Data code\company-a-data.txt',unpack=True)
But I am getting error
File "<ipython-input-58-097f699b5275>", line 1
year,profit= loadtxt('C:\Users\Manisha\Desktop\Data code\company-a-data.txt',unpack=True)
^
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape
Please provide solution of this problem
Python Other-types-of-plots 02-03 min 20-30 sec
Answers:
Please try !type command followed by the filepath and check if issue persists.
Make sure you are not copy pasting the path, type the path in the console.
Make sure you are not copy pasting the path, type the path in the console.
Login to add comment