# -*- coding: utf-8 -*-"""Created on Fri Feb 17 11:30:57 2017@author: yunjinqiE-mail:yunjinqi@QQ.comDifferentiate yourself in the world from anyone else."""import pandas as pddf=pd.read_Excel('luowen.xls')df.head()df=df.iloc[::,8]df.head()df.shift(1).head()rate=(df-df.shift(1))/df.shift(1)rate=rate.dropna()rate.head()#总体上感觉用Python比用R简单一点点。
这将是一个序列课程,将会分享R语言、Python时间序列分析的方法。主要参考R语言相关的时间序列书籍,一点点学习,并使用到Python上面。
新闻热点
疑难解答