当前位置:网站首页>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
边栏推荐
- C miscellaneous shallow copy and deep copy
- Installation de la pagode et déploiement du projet flask
- Use of dataset of pytorch
- 软件测试工程师必备之软技能:结构化思维
- 解决在window中远程连接Linux下的MySQL
- MySQL combat optimization expert 02 in order to execute SQL statements, do you know what kind of architectural design MySQL uses?
- MySQL实战优化高手08 生产经验:在数据库的压测过程中,如何360度无死角观察机器性能?
- Mexican SQL manual injection vulnerability test (mongodb database) problem solution
- 第一篇博客
- 13 medical registration system_ [wechat login]
猜你喜欢

Sichuan cloud education and double teacher model

Mexican SQL manual injection vulnerability test (mongodb database) problem solution

jar运行报错no main manifest attribute

数据库中间件_Mycat总结

MySQL实战优化高手04 借着更新语句在InnoDB存储引擎中的执行流程,聊聊binlog是什么?

Typescript入门教程(B站黑马程序员)

How to make shell script executable

MySQL real battle optimization expert 11 starts with the addition, deletion and modification of data. Review the status of buffer pool in the database

Contest3145 - the 37th game of 2021 freshman individual training match_ B: Password

如何搭建接口自动化测试框架?
随机推荐
寶塔的安裝和flask項目部署
MySQL實戰優化高手08 生產經驗:在數據庫的壓測過程中,如何360度無死角觀察機器性能?
Sed text processing
Bytetrack: multi object tracking by associating every detection box paper reading notes ()
MySQL的存储引擎
Ueeditor internationalization configuration, supporting Chinese and English switching
实现微信公众号H5消息推送的超级详细步骤
Security design verification of API interface: ticket, signature, timestamp
Preliminary introduction to C miscellaneous lecture document
What is the difference between TCP and UDP?
Software test engineer development planning route
Export virtual machines from esxi 6.7 using OVF tool
UEditor国际化配置,支持中英文切换
MNIST implementation using pytoch in jupyter notebook
[Julia] exit notes - Serial
Download and installation of QT Creator
如何搭建接口自动化测试框架?
Set shell script execution error to exit automatically
安装OpenCV时遇到的几种错误
再有人问你数据库缓存一致性的问题,直接把这篇文章发给他