当前位置:网站首页>Unicode decodeerror: 'UTF-8' codec can't decode byte 0xd0 in position 0 successfully resolved
Unicode decodeerror: 'UTF-8' codec can't decode byte 0xd0 in position 0 successfully resolved
2022-07-06 10:26:00 【How about a song without trace】
When doing emotional classification tasks , Read csv The file is disgusting to death , The file coding format is notepad see utf8, also pycharm Also set utf8 Format , Still reporting errors , Finally, I added encoding="ISO-8859-1" It's a success , Anyway, I don't understand , Theory should use utf8 Of , Maybe there is still a problem with the data , Or you can turn it around with Notepad , Save again .
import pandas as pd
# Reading data , engine The default is C
dataset = pd.read_csv("./data/training.1600000.processed.noemoticon.csv",encoding="ISO-8859-1",engine='python',header = None)
# View the... Of the data table shape
边栏推荐
- Security design verification of API interface: ticket, signature, timestamp
- Pytorch LSTM实现流程(可视化版本)
- A necessary soft skill for Software Test Engineers: structured thinking
- MySQL combat optimization expert 09 production experience: how to deploy a monitoring system for a database in a production environment?
- 15 medical registration system_ [appointment registration]
- Retention policy of RMAN backup
- Mysql36 database backup and recovery
- Use xtrabackup for MySQL database physical backup
- MySQL实战优化高手06 生产经验:互联网公司的生产环境数据库是如何进行性能测试的?
- 保姆级手把手教你用C语言写三子棋
猜你喜欢
MySQL Real Time Optimization Master 04 discute de ce qu'est binlog en mettant à jour le processus d'exécution des déclarations dans le moteur de stockage InnoDB.
MySQL32-锁
如何搭建接口自动化测试框架?
Mysql32 lock
软件测试工程师必备之软技能:结构化思维
17 medical registration system_ [wechat Payment]
Carolyn Rosé博士的社交互通演讲记录
实现以form-data参数发送post请求
cmooc互联网+教育
宝塔的安装和flask项目部署
随机推荐
NLP routes and resources
Windchill配置远程Oracle数据库连接
Introduction tutorial of typescript (dark horse programmer of station B)
Solve the problem of remote connection to MySQL under Linux in Windows
flask运维脚本(长时间运行)
16 医疗挂号系统_【预约下单】
Target detection -- yolov2 paper intensive reading
MySQL learning diary (II)
Constants and pointers
如何搭建接口自动化测试框架?
Cmooc Internet + education
UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0xd0 in position 0成功解决
高并发系统的限流方案研究,其实限流实现也不复杂
第一篇博客
软件测试工程师必备之软技能:结构化思维
[C language] deeply analyze the underlying principle of data storage
Use xtrabackup for MySQL database physical backup
Ueeditor internationalization configuration, supporting Chinese and English switching
[unity] simulate jelly effect (with collision) -- tutorial on using jellysprites plug-in
Upload vulnerability