importpandasaspdimporttimedeftimmer(func):defwarpper(*args,**kwargs):start_time=time.time()func()stop_time=time.time()print("the func run time is %s"%(stop_time-start_time))returnwarpperdefadd(num):returnnum+2df=pd.DataFrame(columns=['a','b','c','d','e','f'],index=['date','value'],data=[['1/1/13 0:00','1/1/13 1:00','1/1/13 2:00','1/1/13 3:00','1/1/13 4:00','1/1/13 5:00'],[0.1,0.2,3,4,5,0.6]]).Tdf
the func run time is 5.793862819671631
the func run time is 1.096304178237915
the func run time is 0.9203734397888184
the func run time is 0.5614016056060791
the func run time is 0.5276052951812744
the func run time is 0.534296989440918