Skip to content

BUG: nanoseconds argument for DateOffset results in wrong output #36589

Closed
@GYHHAHA

Description

@GYHHAHA
>>>ts = pd.Timestamp('2020-1-1')
>>>ts + pd.DateOffset(nanoseconds=1000)
Timestamp('2020-01-02 00:00:00')

This is related to offset = timedelta(1) in _determine_offset from pd._libs.tslibs.offsets.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugDatetimeDatetime data dtypeError ReportingIncorrect or improved errors from pandasFrequencyDateOffsets

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions