成功解决ValueError: ‘usecols‘ must either be list-like of all strings, all unicode, all integers or a ca

简介: 成功解决ValueError: ‘usecols‘ must either be list-like of all strings, all unicode, all integers or a ca


目录

解决问题

解决思路

解决方法


 

 

 

解决问题

ValueError: 'usecols' must either be list-like of all strings, all unicode, all integers or a callable.

 

解决思路

值错误:'usecols'必须是类似列表的所有字符串,所有unicode,所有整数或可调用。

 

 

 

解决方法

经过将字段输出,可发现,后边有空字段,直接去掉带有“nan”的空字段即可!

[ 'column01', 'column02', 'column03', nan, nan, nan]

 


相关文章
完美解决丨2. `TypeError: list indices must be integers or slices, not str`
完美解决丨2. `TypeError: list indices must be integers or slices, not str`
|
SQL JSON Java
Java【问题记录 02】对象封装+固定排序+list All elements are null引起的异常处理+Missing artifact com.sun:tools:jar:1.8.0
Java【问题记录 02】对象封装+固定排序+list All elements are null引起的异常处理+Missing artifact com.sun:tools:jar:1.8.0
384 0
为什么有的备份归档日志用list backup of archivelog all查不到,但在第三方备份软件中可以查到
提问:为什么有的备份归档日志用list backup of archivelog all查不到,但在第三方备份软件中可以查到?
268 0
|
存储 缓存
memcached实战系列(五)Memcached: List all keys 查询所有的key
memcached可能当时设计的时候就把它定位为内存性的kv结构的缓存系统。所以没有持久化到磁盘的命令,也没有查看所有key的值得命令。可能觉得没必要吧,你要是缓存1个G内存的数据,自己都头大,还敢看。
1370 0

热门文章

最新文章