csv - Proper Python Pandas read_csv Encoding for '\u2116', the 'Numero Sign' -
i'm working file has couple numero signs in it.
here top 3 lines copied , pasted directly csv file:
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 № summer 01 ! 02 ! 03 ! total № winter 01 ! 02 ! 03 ! total № games 01 ! 02 ! 03 ! combined total afghanistan (afg) 13 0 0 2 2 0 0 0 0 0 13 0 0 2 2
when try import file in anaconda using python 3.5 using pandas read_csv following error:
unicodeencodeerror: 'charmap' code can't encode character '\u2116' in position 104: character maps <undefined>
this happens when try:
df=pd.read_csv('myfile.csv', encoding='utf_8')
i tried standard english codecs listed here same error code: https://docs.python.org/3/library/codecs.html#standard-encodings
does have suggestions on should try differently?
thank help, me
for future readers, went in csv file , deleted 'numero sign' file , used way. doesn't present problem in future projects. chiming in, me
Comments
Post a Comment