We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bab1995 commit ee8752fCopy full SHA for ee8752f
pandas/tests/tseries/offsets/test_offsets.py
@@ -1047,12 +1047,12 @@ def test_construct_int_arg_no_kwargs_assumed_days(n):
1047
)
1048
def test_dateoffset_add_sub_timestamp_series_with_nano(offset, expected):
1049
# GH 47856
1050
- t = Timestamp("2022-01-01")
1051
- teststamp = t
1052
- s = Series([t])
1053
- s = s + offset
1054
- assert s[0] == expected
1055
- s -= offset
1056
- assert s[0] == teststamp
1057
- s = offset + s
1058
+ start_time = Timestamp("2022-01-01")
+ teststamp = start_time
+ testseries = Series([start_time])
+ testseries = testseries + offset
+ assert testseries[0] == expected
+ testseries -= offset
+ assert testseries[0] == teststamp
+ testseries = offset + testseries
0 commit comments