Period.hour
Get the hour of the day component of the Period.
Returns: |
|
---|
See also
Period.second
Period.minute
>>> p = pd.Period("2018-03-11 13:03:12.050000") >>> p.hour 13
Period longer than a day
>>> p = pd.Period("2018-03-11", freq="M") >>> p.hour 0
© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/0.25.0/reference/api/pandas.Period.hour.html