如何使用pandas阅读Excel文件时克服u200d Unicode

2024-09-27 00:15:27 发布

您现在位置:Python中文网/ 问答频道 /正文

excel文件包含印度语数据。正在读取excel文件,但在显示内容时,它会在其间显示\u200d。我需要避免它来做进一步的数据处理。请帮忙


Tags: 文件数据内容excel数据处理u200d
1条回答
网友
1楼 · 发布于 2024-09-27 00:15:27

试试这个

s = 'This is some \u200d text that has to be cleaned\u200d! it\u200d annoying!'
s.encode('ascii', 'ignore')

output :

This is some  text that has to be cleaned! it annoying!'

相关问题 更多 >

    热门问题