-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
Open
Labels
API - ConsistencyInternal Consistency of API/BehaviorInternal Consistency of API/BehaviorIndexRelated to the Index class or subclassesRelated to the Index class or subclassesPeriodPeriod data typePeriod data typeTimestamppd.Timestamp and associated methodspd.Timestamp and associated methods
Description
idx = PeriodIndex(["2011-01", "NaT", "2011-02"], freq="2M", name="idx")
res = idx.to_timestamp()
ATM we always give datetime64[ns] resolution in to_timestamp, but we could reasonably choose lower-resolutions for lower-resolution PeriodDtypes. This could avoid OutOfBoundsDatetime in some cases for e.g. pd.PeriodIndex(["May 3000"], freq="M")
Metadata
Metadata
Assignees
Labels
API - ConsistencyInternal Consistency of API/BehaviorInternal Consistency of API/BehaviorIndexRelated to the Index class or subclassesRelated to the Index class or subclassesPeriodPeriod data typePeriod data typeTimestamppd.Timestamp and associated methodspd.Timestamp and associated methods