We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dfb2651 commit 3be623bCopy full SHA for 3be623b
pandas/_libs/tslibs/timedeltas.pyx
@@ -1196,6 +1196,9 @@ class Timedelta(_Timedelta):
1196
msg = textwrap.dedent("""\
1197
Floor division between integer array and Timedelta is
1198
deprecated. Use 'array // timedelta.value' instead.
1199
+ If you want to obtain epochs from an array of timestamps,
1200
+ you can rather use
1201
+ 'array - pd.Timestamp("1970-01-01")) // pd.Timedelta("1s")'.
1202
""")
1203
warnings.warn(msg, FutureWarning)
1204
return other // self.value
0 commit comments