- 用法:- Period.hour
- 获取期间的一天中的小时。 - int
- 小时为整数,介于 0 和 23 之间。 
 
 - 返回:- 例子:- >>> p = pd.Period("2018-03-11 13:03:12.050000") >>> p.hour 13- 超过一天的时间 - >>> p = pd.Period("2018-03-11", freq="M") >>> p.hour 0
相关用法
- Python pandas.Period.strftime用法及代码示例
- Python pandas.Period.dayofyear用法及代码示例
- Python pandas.Period.qyear用法及代码示例
- Python pandas.Period.day用法及代码示例
- Python pandas.Period.minute用法及代码示例
- Python pandas.Period.dayofweek用法及代码示例
- Python pandas.Period.day_of_week用法及代码示例
- Python pandas.Period.week用法及代码示例
- Python pandas.Period.day_of_year用法及代码示例
- Python pandas.Period.days_in_month用法及代码示例
- Python pandas.Period.daysinmonth用法及代码示例
- Python pandas.Period.weekday用法及代码示例
- Python pandas.Period.second用法及代码示例
- Python pandas.Period.weekofyear用法及代码示例
- Python pandas.Period.start_time用法及代码示例
- Python pandas.PeriodIndex用法及代码示例
- Python pandas.PeriodIndex.asfreq用法及代码示例
- Python pandas.PeriodIndex.strftime用法及代码示例
- Python pandas.PeriodDtype用法及代码示例
- Python pandas.arrays.IntervalArray.is_empty用法及代码示例
注:本文由纯净天空筛选整理自pandas.pydata.org大神的英文原创作品 pandas.Period.hour。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。
