将时间增量添加到Pandas中的运行总计

时间:2018-05-10 15:32:31

标签: python pandas timedelta

enter image description here

所以我的数据框中有两列数据。 TimeDeltasDiffs和ActualTime。数据帧的第一行在ActualTime列中具有开始时间。我想根据当前行中的时间增量值逐步填充ActualTime列。

我在此数据帧上使用了apply和lambdas进行其他操作。 e.g。

df_mrx['Log Timestamp'] = df_mrx['Log Timestamp'].apply(lambda x: '00:' + x)

但在我正在迭代时,不确定如何根据以前的值使用它...

非常感谢任何帮助。

0 个答案:

没有答案