@@ -1108,23 +1108,6 @@ def test_extension_array_repr(int1):
1108
1108
assert repr (int1 ) in repr (int_duck_array )
1109
1109
1110
1110
1111
- # def test_extension_array_result_type_numeric(int1, int2):
1112
- # assert pd.Int64Dtype() == np.result_type(
1113
- # PandasExtensionArray(int1), PandasExtensionArray(int2)
1114
- # )
1115
- # assert pd.Int64Dtype() == np.result_type(
1116
- # 100, -100, PandasExtensionArray(int1), pd.NA
1117
- # )
1118
- # assert pd.Int64Dtype() == np.result_type(
1119
- # PandasExtensionArray(pd.array([1, 2, 3], dtype=pd.Int8Dtype())),
1120
- # np.array([4]),
1121
- # )
1122
- # assert pd.Float64Dtype() == np.result_type(
1123
- # np.array([1.0]),
1124
- # PandasExtensionArray(int1),
1125
- # )
1126
-
1127
-
1128
1111
def test_extension_array_result_type_categorical (categorical1 , categorical2 ):
1129
1112
res = np .result_type (
1130
1113
PandasExtensionArray (categorical1 ), PandasExtensionArray (categorical2 )
@@ -1140,18 +1123,6 @@ def test_extension_array_result_type_categorical(categorical1, categorical2):
1140
1123
)
1141
1124
1142
1125
1143
- # def test_extension_array_result_type_mixed(int1, categorical1):
1144
- # assert np.dtype("object") == np.result_type(
1145
- # PandasExtensionArray(int1), PandasExtensionArray(categorical1)
1146
- # )
1147
- # assert np.dtype("object") == np.result_type(
1148
- # np.array([1, 2, 3]), PandasExtensionArray(categorical1)
1149
- # )
1150
- # assert np.dtype("object") == np.result_type(
1151
- # PandasExtensionArray(int1), dt.datetime.now()
1152
- # )
1153
-
1154
-
1155
1126
def test_extension_array_attr ():
1156
1127
array = pd .Categorical (["cat2" , "cat1" , "cat2" , "cat3" , "cat1" ])
1157
1128
wrapped = PandasExtensionArray (array )
0 commit comments