Represents a period of time.
A Period represents a specific time span rather than a point in time. Unlike Timestamp, which represents a single instant, a Period defines a duration, such as a month, quarter, or year. The exact representation is determined by the freq parameter.
The time period represented (e.g., â4Q2005â). This represents neither the start or the end of the period, but rather the entire period itself.
One of pandas period strings or corresponding objects. Accepted strings are listed in the period alias section in the user docs. If value is datetime, freq is required.
The period offset from the proleptic Gregorian epoch.
Year value of the period.
Month value of the period.
Quarter value of the period.
Day value of the period.
Hour value of the period.
Minute value of the period.
Second value of the period.
See also
Timestamp
Pandas replacement for python datetime.datetime object.
date_range
Return a fixed frequency DatetimeIndex.
timedelta_range
Generates a fixed frequency range of timedeltas.
Examples
>>> period = pd.Period('2012-1-1', freq='D') >>> period Period('2012-01-01', 'D')
Attributes
Methods
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