pandas.Period.start_time#
- Period.start_time#
获取 Period 开始时间的 Timestamp。
- Returns:
- Timestamp
参见
Period.end_time返回结束 Timestamp。
Period.dayofyear返回一年中的第几天。
Period.daysinmonth返回该月份的天数。
Period.dayofweek返回星期几。
Examples
>>> period = pd.Period('2012-1-1', freq='D') >>> period Period('2012-01-01', 'D')
>>> period.start_time Timestamp('2012-01-01 00:00:00')
>>> period.end_time Timestamp('2012-01-01 23:59:59.999999999')