@@ -271,6 +271,7 @@ def test_compare_scalar(self, data, comparison_op):
271
271
ser = pd .Series (data )
272
272
self ._compare_other (ser , data , comparison_op , data [0 ])
273
273
274
+ @pytest .mark .parametrize ("na_action" , [None , "ignore" ])
274
275
def test_map (self , data_missing , na_action ):
275
276
if data_missing .dtype .kind in "mM" :
276
277
result = data_missing .map (lambda x : x , na_action = na_action )
@@ -423,6 +424,7 @@ def _supports_accumulation(self, ser: pd.Series, op_name: str) -> bool:
423
424
return False
424
425
return True
425
426
427
+ @pytest .mark .parametrize ("skipna" , [True , False ])
426
428
def test_accumulate_series (self , data , all_numeric_accumulations , skipna , request ):
427
429
pa_type = data .dtype .pyarrow_dtype
428
430
op_name = all_numeric_accumulations
@@ -524,6 +526,7 @@ def check_reduce(self, ser: pd.Series, op_name: str, skipna: bool):
524
526
expected = getattr (alt , op_name )(skipna = skipna )
525
527
tm .assert_almost_equal (result , expected )
526
528
529
+ @pytest .mark .parametrize ("skipna" , [True , False ])
527
530
def test_reduce_series_numeric (self , data , all_numeric_reductions , skipna , request ):
528
531
dtype = data .dtype
529
532
pa_dtype = dtype .pyarrow_dtype
@@ -549,6 +552,7 @@ def test_reduce_series_numeric(self, data, all_numeric_reductions, skipna, reque
549
552
request .applymarker (xfail_mark )
550
553
super ().test_reduce_series_numeric (data , all_numeric_reductions , skipna )
551
554
555
+ @pytest .mark .parametrize ("skipna" , [True , False ])
552
556
def test_reduce_series_boolean (
553
557
self , data , all_boolean_reductions , skipna , na_value , request
554
558
):
@@ -585,6 +589,7 @@ def _get_expected_reduction_dtype(self, arr, op_name: str, skipna: bool):
585
589
}[arr .dtype .kind ]
586
590
return cmp_dtype
587
591
592
+ @pytest .mark .parametrize ("skipna" , [True , False ])
588
593
def test_reduce_frame (self , data , all_numeric_reductions , skipna , request ):
589
594
op_name = all_numeric_reductions
590
595
if op_name == "skew" :
@@ -2325,6 +2330,7 @@ def test_str_extract_expand():
2325
2330
tm .assert_series_equal (result , expected )
2326
2331
2327
2332
2333
+ @pytest .mark .parametrize ("unit" , ["ns" , "us" , "ms" , "s" ])
2328
2334
def test_duration_from_strings_with_nat (unit ):
2329
2335
# GH51175
2330
2336
strings = ["1000" , "NaT" ]
@@ -2827,6 +2833,7 @@ def test_dt_components():
2827
2833
tm .assert_frame_equal (result , expected )
2828
2834
2829
2835
2836
+ @pytest .mark .parametrize ("skipna" , [True , False ])
2830
2837
def test_boolean_reduce_series_all_null (all_boolean_reductions , skipna ):
2831
2838
# GH51624
2832
2839
ser = pd .Series ([None ], dtype = "float64[pyarrow]" )
0 commit comments