摘要: 1 from turtle import * 2 bgcolor('red') 3 setup(800,500) 4 5 a={(-126,162):65,(-58,55):65,(-58,-48):65,(-126,-162):65,(-300,50):120} 6 def start(tuple 阅读全文
posted @ 2020-06-07 13:50 misherry 阅读(314) 评论(0) 推荐(0)
摘要: 1 #在pandas中如果一列出现nan,则会认为他是float类型 2 import pandas 3 from datetime import datetime,timedelta 4 5 #关于月份加一的函数 6 def add_month(d,md): 7 yd=md//12 8 m=d.m 阅读全文
posted @ 2020-06-07 13:31 misherry 阅读(394) 评论(0) 推荐(0)
摘要: 1 import pandas 2 #Series表示序列,可以表示行或者列 3 4 d={'x':100,'y':300,'z':400} 5 s1=pandas.Series(d) 6 #print(s1.index) #查看其中的索引 7 8 s1=pandas.Series([1,2,3], 阅读全文
posted @ 2020-06-07 13:09 misherry 阅读(287) 评论(0) 推荐(0)