码迷,mamicode.com
首页 > 编程语言 > 详细

[读书笔记] Python 数据分析 (十一)经济和金融数据应用

时间:2018-03-01 23:38:30      阅读:300      评论:0      收藏:0      [点我收藏+]

标签:sam   data   ISE   semi   sem   doc   sample   频率   python   

resample: 重采样函数,可以按照时间来提高或者降低采样频率,fill_method可以使用不同的填充方式。

pandas.data_range 的freq参数枚举:

AliasDescription
B business day frequency
C custom business day frequency
D calendar day frequency
W weekly frequency
M month end frequency
SM semi-month end frequency (15th and end of month)
BM business month end frequency
CBM custom business month end frequency
MS month start frequency
SMS semi-month start frequency (1st and 15th)
BMS business month start frequency
CBMS custom business month start frequency
Q quarter end frequency
BQ business quarter end frequency
QS quarter start frequency
BQS business quarter start frequency
A, Y year end frequency
BA, BY business year end frequency
AS, YS year start frequency
BAS, BYS business year start frequency
BH business hour frequency
H hourly frequency
T, min minutely frequency
S secondly frequency
L, ms milliseconds
U, us microseconds
N nanoseconds

[读书笔记] Python 数据分析 (十一)经济和金融数据应用

标签:sam   data   ISE   semi   sem   doc   sample   频率   python   

原文地址:https://www.cnblogs.com/vincentcheng/p/8486229.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!