Skip to content

Commit db1b60c

Browse files
authored
Small typo in deprecation message added in PR pandas-dev#21060
1 parent 90c2237 commit db1b60c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/_libs/tslibs/timedeltas.pyx

Lines changed: 1 addition & 1 deletion
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)