pandas.PeriodIndex.to_timestamp#

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

强制转换为Datetime数组/索引。

参数
freq字符串或日期偏移量,可选

目标频率。对于周或更长时间,默认值为‘D’,否则为‘S’。

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

使用要转换的时段的开始时间段还是结束时间段。

退货
日期时间数组/索引