Jul-14-2020, 07:39 AM
(Feb-11-2020, 03:01 PM)snippsat Wrote: Look like your editor have introduced a non-printing characterhi, in Spyder, by default, how to remove '\u202a'? Thank youU-202A
is LEFT-TO-RIGHT EMBEDDING.
It's there even if you can not see it,this is a copy of code from your post.
>>> s = r'C:\Users\Eli T\Desktop\ENSO.xlsx' >>> s '\u202aC:\\Users\\Eli T\\Desktop\\ENSO.xlsx'A temp fix could be this,you should investigate editor,eg try and other and see if it's happen there to.
>>> s = r'C:\Users\Eli T\Desktop\ENSO.xlsx' >>> s '\u202aC:\\Users\\Eli T\\Desktop\\ENSO.xlsx' >>> >>> s = s.lstrip('\u202a') >>> s 'C:\\Users\\Eli T\\Desktop\\ENSO.xlsx' >>> enso = pd.read_excel(s, 'r')