Period.dayofyear
Return the day of the year.
This attribute returns the day of the year on which the particular date occurs. The return value ranges between 1 to 365 for regular years and 1 to 366 for leap years.
Returns: |
|
---|
See also
Period.day
Period.dayofweek
PeriodIndex.dayofyear
>>> period = pd.Period("2015-10-23", freq='H') >>> period.dayofyear 296 >>> period = pd.Period("2012-12-31", freq='D') >>> period.dayofyear 366 >>> period = pd.Period("2013-01-01", freq='D') >>> period.dayofyear 1
© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/0.25.0/reference/api/pandas.Period.dayofyear.html