摘要: Counter类: Counter类的目的是用来跟踪值出现的次数。它是一个无序的容器类型,以字典的键值对形式存储,其中元素作为key,其计数作为value。计数值可以是任意的Interger(包括0和负数)。Counter类和其他语言的bags或multisets很相似。 (一)创建Counter类 阅读全文
posted @ 2020-06-14 22:39 马蹄哒哒 阅读(4572) 评论(0) 推荐(0)
摘要: import pandas sheet1=pandas.read_excel('成绩.xlsx',sheet_name='Sheet1') sheet2=pandas.read_excel('成绩.xlsx',sheet_name='Sheet2') 连接两张表 students=sheet1.ap 阅读全文
posted @ 2020-06-14 17:57 马蹄哒哒 阅读(324) 评论(0) 推荐(0)
摘要: 1 import pandas 2 from matplotlib import pyplot 3 from scipy.stats import linregress 4 sale=pandas.read_excel('销售.xlsx',dtype={'date':str}) 5 6 7 slop 阅读全文
posted @ 2020-06-14 11:24 马蹄哒哒 阅读(378) 评论(0) 推荐(0)