当前位置:网站首页>UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0xd0 in position 0成功解决
UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0xd0 in position 0成功解决
2022-07-06 09:11:00 【一曲无痕奈何】
做情感分类任务时候,读取csv文件恶心到死了,文件编码格式用notepad查看utf8,并且pycharm 也设置utf8格式,依旧一直报错,最后加了encoding="ISO-8859-1"竟然成功了,反正不理解,理论应该用utf8的,可能数据还是有问题,或者可以用记事本转一下,重新保存。
import pandas as pd
#读取数据, engine 默认是C
dataset = pd.read_csv("./data/training.1600000.processed.noemoticon.csv",encoding="ISO-8859-1",engine='python',header = None)
#查看数据表的shape
边栏推荐
- Vscode common instructions
- MySQL combat optimization expert 04 uses the execution process of update statements in the InnoDB storage engine to talk about what binlog is?
- [NLP] bert4vec: a sentence vector generation tool based on pre training
- [one click] it only takes 30s to build a blog with one click - QT graphical tool
- Combined search /dfs solution - leetcode daily question - number of 1020 enclaves
- Sichuan cloud education and double teacher model
- Listen to my advice and learn according to this embedded curriculum content and curriculum system
- Hugo blog graphical writing tool -- QT practice
- 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.
- The 32-year-old fitness coach turned to a programmer and got an offer of 760000 a year. The experience of this older coder caused heated discussion
猜你喜欢
Download address of canoe, download and activation of can demo 16, and appendix of all canoe software versions
Control the operation of the test module through the panel in canoe (primary)
Contest3145 - the 37th game of 2021 freshman individual training match_ C: Tour guide
Preliminary introduction to C miscellaneous lecture document
MySQL实战优化高手11 从数据的增删改开始讲起,回顾一下Buffer Pool在数据库里的地位
Which is the better prospect for mechanical engineer or Electrical Engineer?
实现以form-data参数发送post请求
If a university wants to choose to study automation, what books can it read in advance?
17 医疗挂号系统_【微信支付】
15 医疗挂号系统_【预约挂号】
随机推荐
Not registered via @enableconfigurationproperties, marked (@configurationproperties use)
Canoe cannot automatically identify serial port number? Then encapsulate a DLL so that it must work
17 medical registration system_ [wechat Payment]
Can I learn PLC at the age of 33
C miscellaneous dynamic linked list operation
MySQL实战优化高手04 借着更新语句在InnoDB存储引擎中的执行流程,聊聊binlog是什么?
CANoe下载地址以及CAN Demo 16的下载与激活,并附录所有CANoe软件版本
NLP路线和资源
MySQL combat optimization expert 03 uses a data update process to preliminarily understand the architecture design of InnoDB storage engine
Use xtrabackup for MySQL database physical backup
15 医疗挂号系统_【预约挂号】
Random notes
Configure system environment variables through bat script
[untitled]
MySQL的存储引擎
Vh6501 Learning Series
cmooc互联网+教育
PR 2021 quick start tutorial, first understanding the Premiere Pro working interface
If a university wants to choose to study automation, what books can it read in advance?
MySQL real battle optimization expert 08 production experience: how to observe the machine performance 360 degrees without dead angle in the process of database pressure test?