Represents a period of time.
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.
Examples
>>> period = pd.Period('2012-1-1', freq='D') >>> period Period('2012-01-01', 'D')
Attributes
Get day of the month that a Period falls on.
Day of the week the period lies in, with Monday=0 and Sunday=6.
Return the day of the year.
Day of the week the period lies in, with Monday=0 and Sunday=6.
Return the day of the year.
Get the total number of days in the month that this period falls on.
Get the total number of days of the month that this period falls on.
Get the Timestamp for the end of the period.
Return a string representation of the frequency.
Get the hour of the day component of the Period.
Return True if the period's year is in a leap year.
Get minute of the hour component of the Period.
Return the month this Period falls on.
Return the quarter this Period falls on.
Fiscal year the Period lies in according to its starting-quarter.
Get the second component of the Period.
Get the Timestamp for the start of the period.
Get the week of the year on the given Period.
Day of the week the period lies in, with Monday=0 and Sunday=6.
Get the week of the year on the given Period.
Return the year this Period falls on.
Methods
asfreq
(freq[, how])
Convert Period to desired frequency, at the start or end of the interval.
now
(freq)
Return the period of now's date.
strftime
(fmt)
Returns a formatted string representation of the Period
.
to_timestamp
([freq, how])
Return the Timestamp representation of the Period.
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