考虑下面的系列,假设索引在秒内,我如何将下面序列的索引转换为时间戳?在
quantity
1631.083 -5000
1632.395 -5000
1635.482 -5000
1638.536 -1800
1640.818 -5000
1644.739 -5000
1644.828 -5000
1655.214 -1800
1658.691 -4300
1662.751 -5000
1693.350 -5000
Length: 87575, dtype: float64
我试过了:
^{pr2}$但我得到:
ValueError: Cannot convert Period to Timestamp unambiguously. Use to_timestamp
最终目标是能够使用^{
以今天的日期为基数,可以将浮点值转换为Timedelta值,将浮点值解释为秒,然后将其添加到今天的日期:
相关问题 更多 >
编程相关推荐