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.Timestamp.fromordinal.html below:

pandas.Timestamp.fromordinal — pandas 2.3.1 documentation

pandas.Timestamp.fromordinal#
classmethod Timestamp.fromordinal(ordinal, tz=None)#

Construct a timestamp from a a proleptic Gregorian ordinal.

Parameters:
ordinalint

Date corresponding to a proleptic Gregorian ordinal.

tzstr, pytz.timezone, dateutil.tz.tzfile or None

Time zone for the Timestamp.

Notes

By definition there cannot be any tz info on the ordinal itself.

Examples

>>> pd.Timestamp.fromordinal(737425)
Timestamp('2020-01-01 00:00:00')

On this page

Show Source

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