@@ -98,6 +98,7 @@ def _assert_series_equal(actual: pd.Series, expected: pd.Series):
98
98
(operator .floordiv , "timedelta_col_1" , "float_col" ),
99
99
(operator .mul , "timedelta_col_1" , "float_col" ),
100
100
(operator .mul , "float_col" , "timedelta_col_1" ),
101
+ (operator .mod , "timedelta_col_1" , "timedelta_col_2" ),
101
102
],
102
103
)
103
104
def test_timedelta_binary_ops_between_series (temporal_dfs , op , col_1 , col_2 ):
@@ -120,6 +121,7 @@ def test_timedelta_binary_ops_between_series(temporal_dfs, op, col_1, col_2):
120
121
(operator .floordiv , "timedelta_col_1" , 3 ),
121
122
(operator .mul , "timedelta_col_1" , 3 ),
122
123
(operator .mul , "float_col" , pd .Timedelta (1 , "s" )),
124
+ (operator .mod , "timedelta_col_1" , pd .Timedelta (7 , "s" )),
123
125
],
124
126
)
125
127
def test_timedelta_binary_ops_series_and_literal (temporal_dfs , op , col , literal ):
@@ -142,6 +144,7 @@ def test_timedelta_binary_ops_series_and_literal(temporal_dfs, op, col, literal)
142
144
(operator .floordiv , "float_col" , pd .Timedelta (2 , "s" )),
143
145
(operator .mul , "timedelta_col_1" , 3 ),
144
146
(operator .mul , "float_col" , pd .Timedelta (1 , "s" )),
147
+ (operator .mod , "timedelta_col_1" , pd .Timedelta (7 , "s" )),
145
148
],
146
149
)
147
150
def test_timedelta_binary_ops_literal_and_series (temporal_dfs , op , col , literal ):
0 commit comments