|
153 | 153 | ({"A": ["a", "b", "c"], "B": [1, 3, 5], "C": [2, 4, 6]},), |
154 | 154 | operator.methodcaller("melt", id_vars=["A"], value_vars=["B"]), |
155 | 155 | ), |
156 | | - pytest.param((pd.DataFrame, frame_data, operator.methodcaller("map", lambda x: x))), |
| 156 | + (pd.DataFrame, frame_data, operator.methodcaller("map", lambda x: x)), |
157 | 157 | pytest.param( |
158 | 158 | ( |
159 | 159 | pd.DataFrame, |
|
162 | 162 | ), |
163 | 163 | marks=not_implemented_mark, |
164 | 164 | ), |
165 | | - pytest.param( |
166 | | - (pd.DataFrame, frame_data, operator.methodcaller("round", 2)), |
167 | | - ), |
| 165 | + (pd.DataFrame, frame_data, operator.methodcaller("round", 2)), |
168 | 166 | (pd.DataFrame, frame_data, operator.methodcaller("corr")), |
169 | 167 | pytest.param( |
170 | 168 | (pd.DataFrame, frame_data, operator.methodcaller("cov")), |
171 | 169 | marks=[ |
172 | 170 | pytest.mark.filterwarnings("ignore::RuntimeWarning"), |
173 | 171 | ], |
174 | 172 | ), |
175 | | - pytest.param( |
176 | | - ( |
177 | | - pd.DataFrame, |
178 | | - frame_data, |
179 | | - operator.methodcaller("corrwith", pd.DataFrame(*frame_data)), |
180 | | - ), |
181 | | - ), |
182 | | - pytest.param( |
183 | | - (pd.DataFrame, frame_data, operator.methodcaller("count")), |
184 | | - ), |
185 | | - pytest.param( |
186 | | - (pd.DataFrame, frame_data, operator.methodcaller("nunique")), |
| 173 | + ( |
| 174 | + pd.DataFrame, |
| 175 | + frame_data, |
| 176 | + operator.methodcaller("corrwith", pd.DataFrame(*frame_data)), |
187 | 177 | ), |
| 178 | + (pd.DataFrame, frame_data, operator.methodcaller("count")), |
| 179 | + (pd.DataFrame, frame_data, operator.methodcaller("nunique")), |
188 | 180 | (pd.DataFrame, frame_data, operator.methodcaller("idxmin")), |
189 | 181 | (pd.DataFrame, frame_data, operator.methodcaller("idxmax")), |
190 | 182 | (pd.DataFrame, frame_data, operator.methodcaller("mode")), |
191 | 183 | pytest.param( |
192 | 184 | (pd.Series, [0], operator.methodcaller("mode")), |
193 | 185 | marks=not_implemented_mark, |
194 | 186 | ), |
195 | | - pytest.param( |
196 | | - ( |
197 | | - pd.DataFrame, |
198 | | - frame_data, |
199 | | - operator.methodcaller("quantile", numeric_only=True), |
200 | | - ), |
| 187 | + ( |
| 188 | + pd.DataFrame, |
| 189 | + frame_data, |
| 190 | + operator.methodcaller("quantile", numeric_only=True), |
201 | 191 | ), |
202 | | - pytest.param( |
203 | | - ( |
204 | | - pd.DataFrame, |
205 | | - frame_data, |
206 | | - operator.methodcaller("quantile", q=[0.25, 0.75], numeric_only=True), |
207 | | - ), |
| 192 | + ( |
| 193 | + pd.DataFrame, |
| 194 | + frame_data, |
| 195 | + operator.methodcaller("quantile", q=[0.25, 0.75], numeric_only=True), |
208 | 196 | ), |
209 | | - pytest.param( |
210 | | - ( |
211 | | - pd.DataFrame, |
212 | | - ({"A": [pd.Timedelta(days=1), pd.Timedelta(days=2)]},), |
213 | | - operator.methodcaller("quantile", numeric_only=False), |
214 | | - ), |
| 197 | + ( |
| 198 | + pd.DataFrame, |
| 199 | + ({"A": [pd.Timedelta(days=1), pd.Timedelta(days=2)]},), |
| 200 | + operator.methodcaller("quantile", numeric_only=False), |
215 | 201 | ), |
216 | | - pytest.param( |
217 | | - ( |
218 | | - pd.DataFrame, |
219 | | - ({"A": [np.datetime64("2022-01-01"), np.datetime64("2022-01-02")]},), |
220 | | - operator.methodcaller("quantile", numeric_only=True), |
221 | | - ), |
| 202 | + ( |
| 203 | + pd.DataFrame, |
| 204 | + ({"A": [np.datetime64("2022-01-01"), np.datetime64("2022-01-02")]},), |
| 205 | + operator.methodcaller("quantile", numeric_only=True), |
222 | 206 | ), |
223 | 207 | ( |
224 | 208 | pd.DataFrame, |
|
230 | 214 | ({"A": [1]}, [pd.Timestamp("2000")]), |
231 | 215 | operator.methodcaller("to_period", freq="D"), |
232 | 216 | ), |
233 | | - pytest.param( |
234 | | - (pd.DataFrame, frame_mi_data, operator.methodcaller("isin", [1])), |
235 | | - ), |
236 | | - pytest.param( |
237 | | - (pd.DataFrame, frame_mi_data, operator.methodcaller("isin", pd.Series([1]))), |
238 | | - ), |
239 | | - pytest.param( |
240 | | - ( |
241 | | - pd.DataFrame, |
242 | | - frame_mi_data, |
243 | | - operator.methodcaller("isin", pd.DataFrame({"A": [1]})), |
244 | | - ), |
| 217 | + (pd.DataFrame, frame_mi_data, operator.methodcaller("isin", [1])), |
| 218 | + (pd.DataFrame, frame_mi_data, operator.methodcaller("isin", pd.Series([1]))), |
| 219 | + ( |
| 220 | + pd.DataFrame, |
| 221 | + frame_mi_data, |
| 222 | + operator.methodcaller("isin", pd.DataFrame({"A": [1]})), |
245 | 223 | ), |
246 | 224 | (pd.DataFrame, frame_mi_data, operator.methodcaller("droplevel", "A")), |
247 | 225 | (pd.DataFrame, frame_data, operator.methodcaller("pop", "A")), |
|
261 | 239 | (pd.Series, [1], operator.inv), |
262 | 240 | (pd.DataFrame, frame_data, abs), |
263 | 241 | (pd.Series, [1], abs), |
264 | | - pytest.param((pd.DataFrame, frame_data, round)), |
| 242 | + (pd.DataFrame, frame_data, round), |
265 | 243 | (pd.Series, [1], round), |
266 | 244 | (pd.DataFrame, frame_data, operator.methodcaller("take", [0, 0])), |
267 | 245 | (pd.DataFrame, frame_mi_data, operator.methodcaller("xs", "a")), |
|
383 | 361 | (pd.Series, ([1, 2],), operator.methodcaller("pct_change")), |
384 | 362 | (pd.DataFrame, frame_data, operator.methodcaller("pct_change")), |
385 | 363 | (pd.Series, ([1],), operator.methodcaller("transform", lambda x: x - x.min())), |
386 | | - pytest.param( |
387 | | - ( |
388 | | - pd.DataFrame, |
389 | | - frame_mi_data, |
390 | | - operator.methodcaller("transform", lambda x: x - x.min()), |
391 | | - ), |
| 364 | + ( |
| 365 | + pd.DataFrame, |
| 366 | + frame_mi_data, |
| 367 | + operator.methodcaller("transform", lambda x: x - x.min()), |
392 | 368 | ), |
393 | 369 | (pd.Series, ([1],), operator.methodcaller("apply", lambda x: x)), |
394 | | - pytest.param( |
395 | | - (pd.DataFrame, frame_mi_data, operator.methodcaller("apply", lambda x: x)), |
396 | | - ), |
| 370 | + (pd.DataFrame, frame_mi_data, operator.methodcaller("apply", lambda x: x)), |
397 | 371 | # Cumulative reductions |
398 | 372 | (pd.Series, ([1],), operator.methodcaller("cumsum")), |
399 | 373 | (pd.DataFrame, frame_data, operator.methodcaller("cumsum")), |
|
402 | 376 | (pd.DataFrame, frame_data, operator.methodcaller("any")), |
403 | 377 | marks=not_implemented_mark, |
404 | 378 | ), |
405 | | - pytest.param( |
406 | | - (pd.DataFrame, frame_data, operator.methodcaller("sum")), |
407 | | - ), |
408 | | - pytest.param( |
409 | | - (pd.DataFrame, frame_data, operator.methodcaller("std")), |
410 | | - ), |
| 379 | + (pd.DataFrame, frame_data, operator.methodcaller("sum")), |
| 380 | + (pd.DataFrame, frame_data, operator.methodcaller("std")), |
411 | 381 | pytest.param( |
412 | 382 | (pd.DataFrame, frame_data, operator.methodcaller("mean")), |
413 | 383 | marks=not_implemented_mark, |
|
0 commit comments