![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
pandas数据分析
weixin_42285429
这个作者很懒,什么都没留下…
展开
-
将多个dataframe的内容保存在Excel的不同的sheet中
将多个DataFrame保存在同一个Excel文件中的不同Sheet中 # -*- coding: utf-8 -*- import pandas as pd excel_out = pd.ExcelWriter(r'./测试.xlsx') dic1 = { '测试一': [88, 66, 55], '测试二': [99, 77, 33], '测试三': [55, 88, 65] } dic2 = { '测试四': [88, 66, 55], '测试五'..原创 2020-09-20 14:46:03 · 416 阅读 · 0 评论 -
利用pandas得到dataframe中重复的数据
pandas中过滤出后来重复的数据: import pandas as pd data={'one':[1,1,2,2,1,2,2],'two':['a','b','c','d','b','c','d']} frame=pd.DataFrame(data) print("***************原始数据*************") print(frame) data1 = frame....原创 2019-09-21 16:56:42 · 4126 阅读 · 2 评论