Skip to content

Commit 820982b

Browse files
fix reproducibility issue (#62459)
Signed-off-by: Hongxu Jia <[email protected]> Co-authored-by: Matthew Roeschke <[email protected]>
1 parent 986a8fb commit 820982b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pandas/_libs/tslibs/timedeltas.pyx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2068,6 +2068,9 @@ class Timedelta(_Timedelta):
20682068

20692069
disallow_ambiguous_unit(unit)
20702070

2071+
cdef:
2072+
int64_t new_value
2073+
20712074
# GH 30543 if pd.Timedelta already passed, return it
20722075
# check that only value is passed
20732076
if isinstance(value, _Timedelta):

0 commit comments

Comments
 (0)