Skip to content

BUG: overflow in Timedelta arithmetic #17637

Closed
@jreback

Description

@jreback

xref #17318 (comment)

This is not behaving on master, started after: b59f107

In [1]: date_range(start='1/1/1700', freq='B', periods=100000)
---------------------------------------------------------------------------
OverflowError                             Traceback (most recent call last)
OverflowError: Python int too large to convert to C long
Exception ignored in: 'pandas._libs.tslib._delta_to_nanoseconds'
OverflowError: Python int too large to convert to C long
Out[1]: DatetimeIndex(['1700-01-01', '1700-01-04', '1700-01-05', '1700-01-06', '1700-01-07'], dtype='datetime64[ns]', freq='B')

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions