A RetroSearch Logo

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

Search Query:

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

pandas.Period.to_timestamp — pandas 2.3.1 documentation

pandas.Period.to_timestamp#
Period.to_timestamp(freq=None, how='start')#

Return the Timestamp representation of the Period.

Uses the target frequency specified at the part of the period specified by how, which is either Start or Finish.

Parameters:
freqstr or DateOffset

Target frequency. Default is ‘D’ if self.freq is week or longer and ‘S’ otherwise.

howstr, default ‘S’ (start)

One of ‘S’, ‘E’. Can be aliased as case insensitive ‘Start’, ‘Finish’, ‘Begin’, ‘End’.

Returns:
Timestamp

Examples

>>> period = pd.Period('2023-1-1', freq='D')
>>> timestamp = period.to_timestamp()
>>> timestamp
Timestamp('2023-01-01 00:00:00')

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