Skip to content

BUG: Period(distant_past_timestamp, freq="us") #63278

@jbrockmendel

Description

@jbrockmendel

Reproducible Example

ts = pd.Timestamp(pd.Timestamp.min.value, unit="us")

# i.e. Timestamp('-290308-12-21 19:59:05.224193')

per = pd.Period(ts, freq="us")

OverflowError: Overflow occurred at ../../pandas/_libs/src/vendored/numpy/datetime/np_datetime.c:458
Exception ignored in: 'pandas._libs.tslibs.period.get_period_ordinal'

>>> per
Period('1970-01-01 00:00:00.000000', 'us')

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugNeeds TriageIssue that has not been reviewed by a pandas team member

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions