Skip to content

Commit cd04471

Browse files
zertrinTomAugspurger
authored andcommitted
Small typo in deprecation message added in PR #21060 (#21170)
1 parent 791de95 commit cd04471

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/_libs/tslibs/timedeltas.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1246,7 +1246,7 @@ class Timedelta(_Timedelta):
12461246
deprecated. Use 'array // timedelta.value' instead.
12471247
If you want to obtain epochs from an array of timestamps,
12481248
you can rather use
1249-
'array - pd.Timestamp("1970-01-01")) // pd.Timedelta("1s")'.
1249+
'(array - pd.Timestamp("1970-01-01")) // pd.Timedelta("1s")'.
12501250
""")
12511251
warnings.warn(msg, FutureWarning)
12521252
return other // self.value

0 commit comments

Comments
 (0)