pandas.
Period
Represents a period of time.
The time period represented (e.g., ‘4Q2005’).
One of pandas period strings or corresponding objects.
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.
Attributes
day
Get day of the month that a Period falls on.
day_of_week
Day of the week the period lies in, with Monday=0 and Sunday=6.
day_of_year
Return the day of the year.
dayofweek
dayofyear
days_in_month
Get the total number of days in the month that this period falls on.
daysinmonth
Get the total number of days of the month that the Period falls in.
hour
Get the hour of the day component of the Period.
minute
Get minute of the hour component of the Period.
qyear
Fiscal year the Period lies in according to its starting-quarter.
second
Get the second component of the Period.
start_time
Get the Timestamp for the start of the period.
week
Get the week of the year on the given Period.
weekday
end_time
freq
freqstr
is_leap_year
month
ordinal
quarter
weekofyear
year
Methods
asfreq
Convert Period to desired frequency, at the start or end of the interval.
strftime
Returns the string representation of the Period, depending on the selected fmt.
fmt
to_timestamp
Return the Timestamp representation of the Period.
now