成功解决ValueError: Number of passed names did not match number of header fields in the file

简介: 成功解决ValueError: Number of passed names did not match number of header fields in the file


目录

解决问题

解决思路

解决方法


 

 

 

解决问题

ValueError: Number of passed names did not match number of header fields in the file

 

 

解决思路

值错误:传递的名称数量与文件中头字段的数量不匹配!

 

 

解决方法

使用names参数时,类似重命名。切记,要与原数据全部匹配:即不能多也不能少,多或者少都会抛出ValueError错误,所以,只需要补全所有的列标题名即可!

names=['roomtype','height','direction','decorate','garden','district','total_price_Num','area_Num'],

改为

names=['','roomtype','height','direction','decorate','garden','district','total_price_Num','area_Num'],

 


相关文章
|
7月前
|
Python
GEE—关于RSEI生态遥感指数中出现的问题 Layer error: Image.rename: The number of names (1) must match the number of..
GEE—关于RSEI生态遥感指数中出现的问题 Layer error: Image.rename: The number of names (1) must match the number of..
217 0
|
7月前
|
前端开发
Fatal error_ ENOSPC_ System limit for number of file watchers reached, watch '...path...'
Fatal error_ ENOSPC_ System limit for number of file watchers reached, watch '...path...'
59 0
|
API Android开发
Flutter导入第三方包后报错The number of method references in a .dex file cannot exceed 64K
Flutter导入第三方包后报错The number of method references in a .dex file cannot exceed 64K
|
Ubuntu JavaScript
ubuntu 文件监视数量 Error: ENOSPC: System limit for number of file watchers reached, watch‘所在文件路径‘
vue 运行执行 npm run dev | * Error: ENOSPC: System limit for number of file watchers reached, watch’所在文件路径’ 最简单的命令 沾走就能用
225 0
ubuntu 文件监视数量 Error: ENOSPC: System limit for number of file watchers reached, watch‘所在文件路径‘
成功解决ValueError: Number of passed names did not match number of header fields in the file
成功解决ValueError: Number of passed names did not match number of header fields in the file
|
Java 应用服务中间件 Android开发