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/user_guide/../reference/api/pandas.Period.asfreq.html below:

pandas.Period.asfreq — pandas 2.3.1 documentation

pandas.Period.asfreq#
Period.asfreq(freq, how='E')#

Convert Period to desired frequency, at the start or end of the interval.

Parameters:
freqstr, BaseOffset

The desired frequency. If passing a str, it needs to be a valid period alias.

how{‘E’, ‘S’, ‘end’, ‘start’}, default ‘end’

Start or end of the timespan.

Returns:
resampledPeriod

Examples

>>> period = pd.Period('2023-1-1', freq='D')
>>> period.asfreq('h')
Period('2023-01-01 23:00', 'h')

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