pandas.PeriodIndex.second#
- propertyPeriodIndex.second[source] #
The second of the period.
See also
PeriodIndex.hour
The hour of the period.
PeriodIndex.minute
The minute of the period.
PeriodIndex.to_timestamp
Cast to DatetimeArray/Index.
Examples
>>> idx = pd.PeriodIndex(["2023年01月01日 10:00:30", ... "2023年01月01日 10:00:31"], freq='s') >>> idx.second Index([30, 31], dtype='int64')