pandas.Series.to_timestamp#

Series.to_timestamp(freq=None, how='start', copy=True)[源代码]#

强制转换为时间戳的DatetimeIndex,位于 起头 属于那个时期。

参数
freqStr,周期索引的默认频率

所需频率。

how{‘s’,‘e’,‘Start’,‘End’}

将周期转换为时间戳的约定;周期开始与结束。

copy布尔值,默认为True

是否退还复印件。

退货
包含DatetimeIndex的系列