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 73b7bee commit dcb4244Copy full SHA for dcb4244
pandas/tests/tseries/offsets/test_offsets.py
@@ -1080,7 +1080,14 @@ def test_dateoffset_add_sub_timestamp_series_with_nano(offset, expected):
1080
1081
@pytest.mark.parametrize(
1082
"n_months, scaling_factor, start_timestamp, expected_timestamp",
1083
- [(1, 2, "2020-01-30", "2020-03-30"), (2, 1, "2020-01-30", "2020-03-30")],
+ [
1084
+ (1, 2, "2020-01-30", "2020-03-30"),
1085
+ (2, 1, "2020-01-30", "2020-03-30"),
1086
+ (1, 0, "2020-01-30", "2020-01-30"),
1087
+ (2, 0, "2020-01-30", "2020-01-30"),
1088
+ (1, -1, "2020-01-30", "2019-12-30"),
1089
+ (2, -1, "2020-01-30", "2019-11-30"),
1090
+ ],
1091
)
1092
def test_offset_multiplication(
1093
n_months, scaling_factor, start_timestamp, expected_timestamp
0 commit comments