You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In [1]: pd.__version__
Out[1]: '1.1.0.dev0+570.g9a02c3503
It appears we are overflowing when using nanoseconds= keyword for Timedelta. This works just fine when passing smaller values or passing as the first positional arg.
In [3]: pd.Timedelta(nanoseconds=1e10)
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-3-d56d2f0a71ff> in <module>
----> 1 pd.Timedelta(nanoseconds=1e10)
~/pandas/pandas/_libs/tslibs/timedeltas.pyx in pandas._libs.tslibs.timedeltas.Timedelta.__new__()
ValueError: Could not convert object to NumPy timedelta
# ok if by default constructor
In [4]: pd.Timedelta(1e10)
Out[4]: Timedelta('0 days 00:00:10')
The text was updated successfully, but these errors were encountered:
It appears we are overflowing when using nanoseconds= keyword for Timedelta. This works just fine when passing smaller values or passing as the first positional arg.
The text was updated successfully, but these errors were encountered: