pandas 透视查询:

>>>  pd.pivot_table(df,index='时间',values='VinNo',columns='运输gs',aggfunc={'sum'},fill_value=0,margins=True)

报错:
        f"The  name  {level}  occurs  multiple  times,  use  a  level  number"
        ValueError:  The  name  None  occurs  multiple  times,  use  a  level  number

解决方法很简单:
>>>  pd.pivot_table(df,index='时间',values='VinNo',columns='运输gs',aggfunc=sum,dropna=False,fill_value=0,margins=True)

ValueError: The name None occurs multiple times, use a level number相关推荐

  1. ValueError: Bin labels must be one fewer than the number of bin edges

    ValueError: Bin labels must be one fewer than the number of bin edges 目录 ValueError: Bin labels must ...

  2. 【欧拉计划第 5 题】最小公倍数 Smallest multiple

    Problem 5 Smallest multiple 2520 is the smallest number that can be divided by each of the numbers f ...

  3. PEP 634 – Structural Pattern Matching: Specification

    PEP 634 – Structural Pattern Matching: Specification PEP 634 – 结构化模式匹配:规范 PEP: 634 Title: Structural ...

  4. python 3des加密_DES/3DES之ECB模式和CBC模式加解密 及 Python 实现

    概念说明 DES:Data Encryption Standard,即数据加密标准,是一种使用密钥加密的块算法. 3DES:Triple DES,是三重数据加密算法(TDEA,Triple Data ...

  5. [翻译] Ruby Golf

    原文地址:http://rubysource.com/ruby-golf/ Ruby golf is the art of writing code that uses as few characte ...

  6. ORA-600 [kddummy_blkchk] [18038] 一例

    一位客户的Oracle告警日志中出现了ORA-600 [kddummy_blkchk] [18038]故障,alert中的具体信息: Errors in file /u01/app/oracle/ad ...

  7. python基础学习[python编程从入门到实践读书笔记(连载一)]

    写在前面:本文来自笔者关于<python编程从入门到实践>的读书笔记与动手实践记录. 程序员之禅 文章目录 02变量和简单数据类型 03 列表简介 04 操作列表 05 if语句 06 字 ...

  8. Struts1和Struts2的区别和对比(完整版)

    struts2不是struts1的升级,而是继承的webwork的血统,它吸收了struts1和webwork的优势. 先看struts的Action官方注释(struts1.3.8源代码) /** ...

  9. Coursera课程Python for everyone:Quiz: Multi-Table Relational SQL

    Multi-Table Relational SQL 10 试题 1. What is the primary added value of relational databases over fla ...

  10. spring boot application.properties 属性详解

    2019年3月21日17:09:59 英文原版: https://docs.spring.io/spring-boot/docs/current/reference/html/common-appli ...

最新文章

  1. OSPF的RID和DR/BDR的选举
  2. 【Matlab 图像】边缘检测算法及效果演示
  3. php 字符串隔位取,PHP 字符串截取字符串函数
  4. cocos2dx build_native.sh clean 命令报错的解决
  5. Taro+react开发(94):问答模块01
  6. [Leedcode][JAVA][第9题][回文数][数学法]
  7. java quartz2.1_quartz 2.1学习(一)
  8. 【原】vue-router中params和query的区别
  9. 理解Linux的overcommit memory
  10. 转录组分析_转录组+?分析+?实验=2区文章
  11. 基于Spark的电影推荐系统(毕业设计)
  12. XZK-JAVA-支线任务-010605-MVC,登陆案例
  13. 工业制造中的UWB定位技术
  14. BJTU1931 铁憨憨骑士团的中央空调
  15. AI实战:目标检测模型应用之生活垃圾图片分类
  16. 最强计算机游戏,这可能是市面上体积最小性能最强的游戏主机了
  17. [vivado系列]Vivado软件的下载
  18. ...startWebLogic.sh: line 202:21293 已杀死
  19. Data Binding的报错集合 例如Error 10 54 错误 程序包com kodulf recycl
  20. 输出斐波那契数列前n项以及前n项和

热门文章

  1. VON矿链资本的技术含量内幕是什么?尊皇社区为你揭秘!
  2. 知识图谱的构建及用Neo4j和grapheco/InteractiveGraph实现知识图谱的可视化
  3. java医疗保险系统_医疗保险管理系统设计 Java
  4. LeetCode T32 Longest Valid Parentheses
  5. nyoj 366 D的小L(数的全排)
  6. 安装mysql详细教程(windows 10安装mysql详细教程新手必看)
  7. html外链自动加nofollow,WordPress自动为站外链接添加nofollow标签
  8. AutoCAD插件实现帐号密码登录
  9. 使用SQLite打开本地.db文件
  10. html img 能显示psd吗_psd变成html