'\u2116' 的正确 Python Pandas read_csv 编码, 'Numero Sign'

Proper Python Pandas read_csv encoding for '\u2116', the 'Numero Sign'

我正在处理一个包含几个数字符号的文件。

以下是直接从 CSV 文件复制和粘贴的前 3 行:

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

当我尝试使用 Python 3.5 使用 Pandas read_csv 在 Anaconda 中导入文件时,出现以下错误:

UnicodeEncodeError:  'charmap' code can't encode character '\u2116' in position 104: character maps to <undefined>

当我尝试时会发生这种情况:

df=pd.read_csv('myfile.csv', encoding='utf_8')

我也尝试了这里列出的标准英文编解码器,错误代码基本相同: https://docs.python.org/3/library/codecs.html#standard-encodings

我应该尝试哪些不同的方法?

我进入 CSV 文件并从文件中删除了 'Numero Sign' 并以这种方式使用它。希望它不会在未来的项目中出现问题。