pandas.Period¶
-
class
pandas.Period¶ Represents a period of time
Parameters: value : Period or compat.string_types, default None
The time period represented (e.g., ‘4Q2005’)
freq : str, default None
One of pandas period strings or corresponding objects
year : int, default None
month : int, default 1
quarter : int, default None
day : int, default 1
hour : int, default 0
minute : int, default 0
second : int, default 0
Attributes
daydayofweekdayofyeardays_in_monthdaysinmonthend_timefreqfreqstrhouris_leap_yearminutemonthordinalquarterqyearsecondstart_timeweekweekdayweekofyearyearMethods
asfreqConvert Period to desired frequency, either at the start or end of the nowstrftimeReturns the string representation of the Period, depending on the selectedformat.to_timestampReturn the Timestamp representation of the Period at the target