pandas.PeriodIndex.end_time#

property PeriodIndex.end_time[source]#

Get the Timestamp for the end of the period.

Returns a DatetimeIndex with the last possible moment within each period in the index (e.g. 23:59:59.999999 for a daily period).

Returns:
DatetimeIndex

See also

PeriodIndex.start_time

Return the start Timestamp.

PeriodIndex.to_timestamp

Cast to DatetimeIndex.

Period.end_time

Return the end Timestamp for a single Period.

Examples

>>> idx = pd.PeriodIndex(["2023-01", "2023-02"], freq="M")
>>> idx.end_time
DatetimeIndex(['2023-01-31 23:59:59.999999', '2023-02-28 23:59:59.999999'],
              dtype='datetime64[us]', freq=None)