23
23
from pandas .tests .extension .base .index import BaseIndexTests
24
24
from pandas .tests .extension .base .interface import BaseInterfaceTests
25
25
from pandas .tests .extension .base .io import BaseParsingTests
26
+ from pandas .tests .extension .base .methods import BaseMethodsTests
26
27
from pandas .tests .extension .base .missing import BaseMissingTests
27
28
from pandas .tests .extension .base .ops import ( # noqa: F401
28
29
BaseArithmeticOpsTests ,
@@ -61,6 +62,28 @@ def data_missing(dtype):
61
62
return arr
62
63
63
64
65
+ @pytest .fixture
66
+ def data_for_sorting (data_for_grouping ):
67
+ """
68
+ Length-3 array with a known sort order.
69
+
70
+ This should be three items [B, C, A] with
71
+ A < B < C
72
+ """
73
+ pytest .skip ("ListArray does not support sorting" )
74
+
75
+
76
+ @pytest .fixture
77
+ def data_missing_for_sorting (data_for_grouping ):
78
+ """
79
+ Length-3 array with a known sort order.
80
+
81
+ This should be three items [B, NA, A] with
82
+ A < B and NA missing.
83
+ """
84
+ pytest .skip ("ListArray does not support sorting" )
85
+
86
+
64
87
@pytest .fixture
65
88
def data_for_grouping (dtype ):
66
89
A = ["a" ]
@@ -80,7 +103,7 @@ class TestListArray(
80
103
BaseIndexTests ,
81
104
BaseInterfaceTests ,
82
105
BaseParsingTests ,
83
- # BaseMethodsTests,
106
+ BaseMethodsTests ,
84
107
BaseMissingTests ,
85
108
BaseArithmeticOpsTests ,
86
109
BaseComparisonOpsTests ,
@@ -230,6 +253,77 @@ def test_unstack(self, data, index, obj):
230
253
def test_getitem_ellipsis_and_slice (self , data ):
231
254
pytest .skip ("ListArray does not support NumPy style ellipsis slicing nor 2-D" )
232
255
256
+ def test_hash_pandas_object (self , data ):
257
+ pytest .skip ("ListArray does not support this" )
258
+
259
+ @pytest .mark .parametrize ("dropna" , [True , False ])
260
+ def test_value_counts (self , all_data , dropna ):
261
+ pytest .skip ("ListArray does not support this" )
262
+
263
+ def test_value_counts_with_normalize (self , data ):
264
+ pytest .skip ("ListArray does not support this" )
265
+
266
+ @pytest .mark .parametrize ("na_action" , [None , "ignore" ])
267
+ def test_map (self , data_missing , na_action ):
268
+ pytest .skip ("ListArray does not support this" )
269
+
270
+ @pytest .mark .parametrize ("keep" , ["first" , "last" , False ])
271
+ def test_duplicated (self , data , keep ):
272
+ pytest .skip ("ListArray does not support this" )
273
+
274
+ @pytest .mark .parametrize ("box" , [pd .Series , lambda x : x ])
275
+ @pytest .mark .parametrize ("method" , [lambda x : x .unique (), pd .unique ])
276
+ def test_unique (self , data , box , method ):
277
+ pytest .skip ("ListArray does not support this" )
278
+
279
+ def test_factorize (self , data_for_grouping ):
280
+ pytest .skip ("ListArray does not support this" )
281
+
282
+ def test_factorize_equivalence (self , data_for_grouping ):
283
+ pytest .skip ("ListArray does not support this" )
284
+
285
+ def test_factorize_empty (self , data ):
286
+ pytest .skip ("ListArray does not support this" )
287
+
288
+ def test_fillna_limit_frame (self , data_missing ):
289
+ pytest .skip ("Needs review - can assignment be avoided?" )
290
+
291
+ def test_fillna_limit_series (self , data_missing ):
292
+ pytest .skip ("Needs review - can assignment be avoided?" )
293
+
294
+ def test_fillna_copy_frame (self , data_missing ):
295
+ pytest .skip ("Needs review - can assignment be avoided?" )
296
+
297
+ def test_fillna_copy_series (self , data_missing ):
298
+ pytest .skip ("Needs review - can assignment be avoided?" )
299
+
300
+ def test_combine_le (self , data_repeated ):
301
+ pytest .skip ("Needs review - can assignment be avoided?" )
302
+
303
+ def test_combine_first (self , data ):
304
+ pytest .skip ("Needs review - can assignment be avoided?" )
305
+
306
+ def test_shift_0_periods (self , data ):
307
+ pytest .skip ("Needs review - can assignment be avoided?" )
308
+
309
+ def test_hash_pandas_object_works (self , data , as_frame ):
310
+ pytest .skip ("ListArray does not support this" )
311
+
312
+ def test_where_series (self , data , na_value , as_frame ):
313
+ pytest .skip ("Needs review - can assignment be avoided?" )
314
+
315
+ def test_argsort (self , data_for_sorting ):
316
+ pytest .skip ("ListArray does not support this" )
317
+
318
+ def test_argsort_missing_array (self , data_missing_for_sorting ):
319
+ pytest .skip ("ListArray does not support this" )
320
+
321
+ def test_argsort_missing (self , data_missing_for_sorting ):
322
+ pytest .skip ("ListArray does not support this" )
323
+
324
+ def test_argmin_argmax (self , data_for_sorting , data_missing_for_sorting , na_value ):
325
+ pytest .skip ("ListArray does not support this" )
326
+
233
327
234
328
def test_to_csv (data ):
235
329
# https://github.com/pandas-dev/pandas/issues/28840
0 commit comments