@@ -67,18 +67,19 @@ def check_reduce(self, ser: pd.Series, op_name: str, skipna: bool):
67
67
def check_reduce_with_wrap (self , ser : pd .Series , op_name : str , skipna : bool ):
68
68
if op_name in ["count" , "kurt" , "sem" ]:
69
69
pytest .skip (f"{ op_name } not an array method" )
70
+ elif is_platform_windows () or not IS64 :
71
+ pytest .skip ("tests for platform not written yet" )
70
72
71
73
arr = ser .array
72
74
73
- float32_cond = arr .dtype == "Float32" or (is_platform_windows () or not IS64 )
74
- float_dtype = "Float32" if float32_cond else "Float64"
75
-
76
- if op_name in ["mean" , "median" , "var" , "std" , "skew" ]:
77
- cmp_dtype = float_dtype
75
+ if tm .is_float_dtype (arr .dtype ):
76
+ cmp_dtype = arr .dtype
77
+ elif op_name in ["mean" , "median" , "var" , "std" , "skew" ]:
78
+ cmp_dtype = "Float64"
78
79
elif op_name in ["max" , "min" ]:
79
- cmp_dtype = arr .dtype . name
80
+ cmp_dtype = arr .dtype
80
81
else :
81
- cmp_dtype = {"i" : "Int64" , "u" : "UInt64" , "f" : float_dtype }[arr .dtype .kind ]
82
+ cmp_dtype = {"i" : "Int64" , "u" : "UInt64" , "f" : "Float64" }[arr .dtype .kind ]
82
83
83
84
result = arr ._reduce_with_wrap (op_name , skipna = skipna , kwargs = {})
84
85
if not skipna and ser .isna ().any ():
0 commit comments