pandas.errors.OutOfBoundsTimedelta

exceptionpandas.errors.OutOfBoundsTimedelta

Raised when encountering a timedelta value that cannot be represented.

Representation should be within a timedelta64[ns].

Examples

>>> pd.date_range(start="1/1/1700", freq="B", periods=100000)
Traceback (most recent call last):
OutOfBoundsTimedelta: Cannot cast 139999 days 00:00:00
to unit='ns' without overflow.

© 2008–2011, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
© 2011–2025, Open source contributors
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/2.3.0/reference/api/pandas.errors.OutOfBoundsTimedelta.html