ValueError: The name None occurs multiple times, use a level number
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相关推荐
- 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 ...
- 【欧拉计划第 5 题】最小公倍数 Smallest multiple
Problem 5 Smallest multiple 2520 is the smallest number that can be divided by each of the numbers f ...
- PEP 634 – Structural Pattern Matching: Specification
PEP 634 – Structural Pattern Matching: Specification PEP 634 – 结构化模式匹配:规范 PEP: 634 Title: Structural ...
- python 3des加密_DES/3DES之ECB模式和CBC模式加解密 及 Python 实现
概念说明 DES:Data Encryption Standard,即数据加密标准,是一种使用密钥加密的块算法. 3DES:Triple DES,是三重数据加密算法(TDEA,Triple Data ...
- [翻译] Ruby Golf
原文地址:http://rubysource.com/ruby-golf/ Ruby golf is the art of writing code that uses as few characte ...
- ORA-600 [kddummy_blkchk] [18038] 一例
一位客户的Oracle告警日志中出现了ORA-600 [kddummy_blkchk] [18038]故障,alert中的具体信息: Errors in file /u01/app/oracle/ad ...
- python基础学习[python编程从入门到实践读书笔记(连载一)]
写在前面:本文来自笔者关于<python编程从入门到实践>的读书笔记与动手实践记录. 程序员之禅 文章目录 02变量和简单数据类型 03 列表简介 04 操作列表 05 if语句 06 字 ...
- Struts1和Struts2的区别和对比(完整版)
struts2不是struts1的升级,而是继承的webwork的血统,它吸收了struts1和webwork的优势. 先看struts的Action官方注释(struts1.3.8源代码) /** ...
- 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 ...
- spring boot application.properties 属性详解
2019年3月21日17:09:59 英文原版: https://docs.spring.io/spring-boot/docs/current/reference/html/common-appli ...
最新文章
- OSPF的RID和DR/BDR的选举
- 【Matlab 图像】边缘检测算法及效果演示
- php 字符串隔位取,PHP 字符串截取字符串函数
- cocos2dx build_native.sh clean 命令报错的解决
- Taro+react开发(94):问答模块01
- [Leedcode][JAVA][第9题][回文数][数学法]
- java quartz2.1_quartz 2.1学习(一)
- 【原】vue-router中params和query的区别
- 理解Linux的overcommit memory
- 转录组分析_转录组+?分析+?实验=2区文章
- 基于Spark的电影推荐系统(毕业设计)
- XZK-JAVA-支线任务-010605-MVC,登陆案例
- 工业制造中的UWB定位技术
- BJTU1931 铁憨憨骑士团的中央空调
- AI实战:目标检测模型应用之生活垃圾图片分类
- 最强计算机游戏,这可能是市面上体积最小性能最强的游戏主机了
- [vivado系列]Vivado软件的下载
- ...startWebLogic.sh: line 202:21293 已杀死
- Data Binding的报错集合 例如Error 10 54 错误 程序包com kodulf recycl
- 输出斐波那契数列前n项以及前n项和
热门文章
- VON矿链资本的技术含量内幕是什么?尊皇社区为你揭秘!
- 知识图谱的构建及用Neo4j和grapheco/InteractiveGraph实现知识图谱的可视化
- java医疗保险系统_医疗保险管理系统设计 Java
- LeetCode T32 Longest Valid Parentheses
- nyoj 366 D的小L(数的全排)
- 安装mysql详细教程(windows 10安装mysql详细教程新手必看)
- html外链自动加nofollow,WordPress自动为站外链接添加nofollow标签
- AutoCAD插件实现帐号密码登录
- 使用SQLite打开本地.db文件
- html img 能显示psd吗_psd变成html