当前位置:网站首页>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
边栏推荐
- The replay block of canoe still needs to be combined with CAPL script to make it clear
- MySQL combat optimization expert 05 production experience: how to plan the database machine configuration in the real production environment?
- MySQL combat optimization expert 09 production experience: how to deploy a monitoring system for a database in a production environment?
- Some thoughts on the study of 51 single chip microcomputer
- How to make shell script executable
- vscode 常用的指令
- [Julia] exit notes - Serial
- Good blog good material record link
- CAPL脚本中关于相对路径/绝对路径操作的几个傻傻分不清的内置函数
- Inject common SQL statement collation
猜你喜欢

Installation de la pagode et déploiement du projet flask

cmooc互联网+教育

MySQL实战优化高手03 用一次数据更新流程,初步了解InnoDB存储引擎的架构设计
![[after reading the series] how to realize app automation without programming (automatically start Kwai APP)](/img/e1/bad9cfa70d3c533cfaddeee40b96f1.jpg)
[after reading the series] how to realize app automation without programming (automatically start Kwai APP)
![[after reading the series of must know] one of how to realize app automation without programming (preparation)](/img/eb/e789d88f10787c302f9457ca7ca2cc.jpg)
[after reading the series of must know] one of how to realize app automation without programming (preparation)

Implement context manager through with

Contrôle de l'exécution du module d'essai par panneau dans Canoe (primaire)

西南大学:胡航-关于学习行为和学习效果分析

MySQL实战优化高手12 Buffer Pool这个内存数据结构到底长个什么样子?

Use xtrabackup for MySQL database physical backup
随机推荐
Vh6501 Learning Series
[untitled]
宝塔的安装和flask项目部署
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.
在CANoe中通过Panel面板控制Test Module 运行(初级)
16 医疗挂号系统_【预约下单】
MySQL combat optimization expert 02 in order to execute SQL statements, do you know what kind of architectural design MySQL uses?
通过bat脚本配置系统环境变量
Constants and pointers
CANoe CAPL文件操作目录合集
C miscellaneous dynamic linked list operation
CAPL script pair High level operation of INI configuration file
Teach you how to write the first MCU program hand in hand
Several silly built-in functions about relative path / absolute path operation in CAPL script
If someone asks you about the consistency of database cache, send this article directly to him
Delayed note learning
C杂讲 双向循环链表
MySQL实战优化高手07 生产经验:如何对生产环境中的数据库进行360度无死角压测?
MySQL combat optimization expert 10 production experience: how to deploy visual reporting system for database monitoring system?
四川云教和双师模式