Skip to content

Commit cc9ff27

Browse files
zertrinjorisvandenbossche
authored andcommitted
Small typo in deprecation message added in PR #21060 (#21170)
(cherry picked from commit cd04471)
1 parent 3e91eb9 commit cc9ff27

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)