A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://pandas.pydata.org/pandas-docs/stable/reference/api/../api/pandas.Period.hour.html below:

pandas.Period.hour — pandas 2.3.1 documentation

pandas.Period.hour#
Period.hour#

Get the hour of the day component of the Period.

Returns:
int

The hour as an integer, between 0 and 23.

See also

Period.second

Get the second component of the Period.

Period.minute

Get the minute component of the Period.

Examples

>>> 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4