使用熊猫向时间序列数据框添加新行

时间:2020-05-12 13:07:42

标签: pandas dataframe time-series linear-interpolation

我有一个按传感器分组的多索引数据帧时间序列,从2019年11月28日11点40分开始,到2019年12月2日9点40分结束,频率为5分钟。Dataframelinkhere 数据帧结构的ex 阅读深度
传感器sensor_date 1 2019-11-29 11:10:00 1.2 0.5 2019-11-29 11:15:00 1.3 0.5 2019-11-29 11:20:00 1.3 0.5 ..... .... .... 2 2019-11-29 11:10:00 1.2 1.5 2019-11-29 11:15:00 1.3 1.5 2019-11-29 11:20:00 1.3 1.5 .....................

  1. 我想添加行,以便每个传感器的开始日期为2019年11月26日9点。

任何建议都值得欢迎,我在这里真的很挣扎。

感谢您的帮助。

0 个答案:

没有答案