摘要: 1 from datetime import * 2 today=datetime.today() 3 now=datetime.now() 4 5 #判断今天是星期几 6 today.isoweekday() 7 8 #计算一周以后是星期几 9 day=timedelta(days=7) 10 t 阅读全文
posted @ 2020-06-08 23:43 misherry 阅读(300) 评论(0) 推荐(0)
摘要: import pandas def price_3_to_7(a): return 3<=a<=7 def time_3_to_8(b): return 3<=b<=8 excel=pandas.read_excel('填充数据.xlsx',header=3,index_col='id') exce 阅读全文
posted @ 2020-06-08 12:47 misherry 阅读(933) 评论(0) 推荐(0)
摘要: 1 import pandas 2 excel=pandas.read_excel('填充数据.xlsx',header=3,index_col='id') 3 excel.sort_values(by=['worthy','price'],inplace=True,ascending=[True, 阅读全文
posted @ 2020-06-08 12:27 misherry 阅读(525) 评论(0) 推荐(0)
摘要: 1 import pandas 2 excel=pandas.read_excel('填充数据.xlsx',header=3,index_col='id') 3 excel['mutiply']=excel['store']*0.5 4 for i in excel.index: 5 excel[' 阅读全文
posted @ 2020-06-08 11:33 misherry 阅读(223) 评论(0) 推荐(0)