在windows中运行正常,linux中报错

ValueError: Wrong number of items passed 2, placement implies 1。

可能是由于版本不对,

解决:

 attr['Package'] = attr[['Width','Length']].apply(lambda x: str(x['Width'] +'X'+x['Length']), axis=1)改为:attr['Package'] = attr['Width'] +'X'+attr['Length']

ValueError: Wrong number of items passed 2, placement implies 1相关推荐

  1. The number of object passed must be even but was [1]

    1.失败,使用TransportClient public static void bulkInsert(TransportClient client) throws IOException {Lis ...

  2. WCF:Maximum number of items that can be serialized or deserialized in an object graph is '65536'.

    错误 Maximum number of items that can be serialized or deserialized in an object graph is '65536'. Cha ...

  3. 解决:elasticsearch 更新报错:The number of object passed must be even but was [1]

    前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍不住分享一下给大家.点击跳转到教程. 1. 错误的代码写法: @Autowiredprivate ElasticsearchOperati ...

  4. 【elasticsearch】The number of object passed must be even but was [1]

    1.概述 The number of object passed must be even but was [1] ES 在调用 setSource 的时候传入 Json 对象后会报错:The num ...

  5. Exception in Thread: ValueError: signal number 32 out of range

    如何解决Exception in Thread: ValueError: signal number 32 out of range? 两种办法: 将num_worker的数量设置为0(治标不治本,甚 ...

  6. ValueError: The number of elements in ‘fill‘ does not match the number of bands of the image (3 != 4

    错误:ValueError: The number of elements in 'fill' does not match the number of bands of the image (3 ! ...

  7. 【Python】ValueError: The number of classes has to be greater than one; got 1 class

    今天使用Python的sklearn模块训练模型时,报错ValueError: The number of classes has to be greater than one; got 1 clas ...

  8. ValueError: The list of inputs passed to the model is redundant. All inputs should only appear once.

    文章目录 1.出错截图 2.解决出现问题的地方 1.出错截图 2.解决出现问题的地方 这个地方需要注意,需要事先将input_shape使用keras.Input转换为网络层可以接收的数据类型,那么才 ...

  9. numpy loadtxt错误ValueError: Wrong number of columns at line ***

    最近在爬b站视频评论 爬取之后存储在csv文件里面,但是用np.loadtxt读取的时候一直报错,最终发现问题在一个参数:comments上面: 这是报错数据:930行 这是读取代码: data = ...

  10. number of items to replace is not a multiple of replacement length

    错误如图所示,我在进行循环读文件时出现了问题,读取后的list中每个表格式都有问题. 但实际上单独读取是这样的结果 上网查也没查出个所以然,后来发现是list调用的问题,可以看到data[i]出了问题 ...

最新文章

  1. 移动端页面去除广告注入,例如移动流量图标
  2. 中国剩余定理求解“六位教授必须首次都停止上课”问题
  3. 使用 jQuery Mobile 与 HTML5 开发 Web App —— jQuery Mobile 默认配置与事件基础
  4. HTML转义字符表的使用
  5. 关于制作ppt的讲解
  6. php人民币转换,人民币大小写转换(PHP版)
  7. 基于SSM的网上购物系统的设计与开发
  8. extmail如何登陆mysql_linux下ExtMail邮件使用及管理平台
  9. 2019python二级真题_2019年3月二级python真题,上岸必备!
  10. 交通生成器Road Architect推荐
  11. RPS基准点系统 2020
  12. module() takes at most 2 arguments (3 given)
  13. ubuntu16.04 独立显卡驱动安装
  14. 均值不等式中考_中考数学解题技巧方法
  15. 昨天,我又“装”上了Windows 1.0
  16. Android ROM开发(一)——Windows下Cygwin和Android_Kitchen厨房的安装
  17. Window操作系统基本知识
  18. 什么是Websocket以及Nginx实现ws代理
  19. C#上位机开发(十二)—— SQLite的使用
  20. IDEA 报错 project is already registered

热门文章

  1. web前端入门到实战:行内和块状元素水平居中与单行或多行文本垂直居中及隐性改变display类型
  2. 攻防世界 easyphp
  3. dataSource配置oracle,使用datasource连接数据库
  4. 如何快速入门RTOS
  5. 设计模式学习之—我是一个粉刷匠(装饰模式)
  6. 打怪升级之小白的大数据之旅(六十九)<Hive旅程第十站:Hive的优化>
  7. 优秀后端架构师必会知识:史上最全MySQL大表优化方案总结...
  8. Java 实现数字全排列
  9. Unity项目捏脸解决方案BlendShape
  10. ckfinder java 配置_JAVA里使用CKEditor和CKFinder的配置