基于pandas的时间序列处理方法

import pandas as pd import numpy as np #生成时间序列 rng = pd.date_range('2016/1/1', periods=20, freq='D') time = pd.Series(np.random.rand(20), index=rng) #print(time) #过滤数据 time.truncate(before='2016-1-10'
相关文章
相关标签/搜索