我是Python相关环境的初学者,我在使用时间序列数据时遇到了问题。
以下是我每天的一分钟收盘价数据。
提前致谢,
以下是我每天的一分钟收盘价数据。
2011-11-01, 248.70, 248.85, 249.15, ... 250.15, 250.60, 250.55
2011-11-02, 245.80, 246.35, 245.80, ...
...
I'd like to change time series values based on 'last close value of yesterday' like the following:
2011-11-01, (248.70 - 248.70), (248.85 - 248.70), (249.15 - 248.70), ... 250.15 - 248.70, 250.60 - 248.70, 250.55 - 248.70 2011-11-02, (245.80 - 250.55), (246.35 - 250.55), (245.80 - 250.55), ... ...
I'd like to eliminate GAP between yesterday and today:
2011-11-01, 248.70, 248.85, 249.15, ... 250.15, 250.60, 250.55 2011-11-02, 245.80 - (245.80 - 250.55), 246.35 - (245.80 - 250.55), 245.80 - (245.80 - 250.55), ... ...
提前致谢,