oku*_*oub 4 excel character-encoding hebrew python-3.x pandas
我有一个包含希伯来语单词的数据框。我曾经df.to_csv(encoding='utf-8')写过它,但文字表达得不好:
当在文本编辑中打开它时,我可以正确看到希伯来语。我使用的是带有 Python3 和 Microsoft Excel 16.16 的 Mac。有什么想法如何修复它吗?
尝试:
df.to_csv(file_path, index=False ,encoding = 'utf-8-sig')
Run Code Online (Sandbox Code Playgroud)