Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
Ctrl+K

pandas.PeriodIndex.day_of_year#

propertyPeriodIndex.day_of_year[source]#

The ordinal day of the year.

Examples

>>>idx=pd.PeriodIndex(["2023-01-10","2023-02-01","2023-03-01"],freq="D")>>>idx.dayofyearIndex([10, 32, 60], dtype='int64')
>>>idx=pd.PeriodIndex(["2023","2024","2025"],freq="Y")>>>idxPeriodIndex(['2023', '2024', '2025'], dtype='period[Y-DEC]')>>>idx.dayofyearIndex([365, 366, 365], dtype='int64')

[8]ページ先頭

©2009-2025 Movatter.jp