当前位置:网站首页>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
边栏推荐
- MySQL real battle optimization expert 11 starts with the addition, deletion and modification of data. Review the status of buffer pool in the database
- Time in TCP state_ The role of wait?
- MySQL实战优化高手06 生产经验:互联网公司的生产环境数据库是如何进行性能测试的?
- 宝塔的安装和flask项目部署
- 15 medical registration system_ [appointment registration]
- Implement context manager through with
- 实现微信公众号H5消息推送的超级详细步骤
- Chrome浏览器端跨域不能访问问题处理办法
- 寶塔的安裝和flask項目部署
- text 文本数据增强方法 data argumentation
猜你喜欢
Not registered via @enableconfigurationproperties, marked (@configurationproperties use)
Mysql36 database backup and recovery
MySQL real battle optimization expert 11 starts with the addition, deletion and modification of data. Review the status of buffer pool in the database
数据库中间件_Mycat总结
使用OVF Tool工具从Esxi 6.7中导出虚拟机
C miscellaneous lecture continued
Typescript入门教程(B站黑马程序员)
[after reading the series] how to realize app automation without programming (automatically start Kwai APP)
UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0xd0 in position 0成功解决
Const decorated member function problem
随机推荐
MySQL實戰優化高手04 借著更新語句在InnoDB存儲引擎中的執行流程,聊聊binlog是什麼?
MySQL底层的逻辑架构
ByteTrack: Multi-Object Tracking by Associating Every Detection Box 论文阅读笔记()
C miscellaneous dynamic linked list operation
16 medical registration system_ [order by appointment]
[after reading the series] how to realize app automation without programming (automatically start Kwai APP)
Redis集群方案应该怎么做?都有哪些方案?
Google login prompt error code 12501
Southwest University: Hu hang - Analysis on learning behavior and learning effect
History of object recognition
MySQL learning diary (II)
First blog
Docker MySQL solves time zone problems
MySQL combat optimization expert 10 production experience: how to deploy visual reporting system for database monitoring system?
Implement sending post request with form data parameter
Preliminary introduction to C miscellaneous lecture document
13 medical registration system_ [wechat login]
Write your own CPU Chapter 10 - learning notes
再有人问你数据库缓存一致性的问题,直接把这篇文章发给他
Installation de la pagode et déploiement du projet flask