2323from pandas .tests .extension .base .index import BaseIndexTests
2424from pandas .tests .extension .base .interface import BaseInterfaceTests
2525from pandas .tests .extension .base .io import BaseParsingTests
26+ from pandas .tests .extension .base .methods import BaseMethodsTests
2627from pandas .tests .extension .base .missing import BaseMissingTests
2728from pandas .tests .extension .base .ops import ( # noqa: F401
2829 BaseArithmeticOpsTests ,
@@ -61,6 +62,28 @@ def data_missing(dtype):
6162 return arr
6263
6364
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+
6487@pytest .fixture
6588def data_for_grouping (dtype ):
6689 A = ["a" ]
@@ -80,7 +103,7 @@ class TestListArray(
80103 BaseIndexTests ,
81104 BaseInterfaceTests ,
82105 BaseParsingTests ,
83- # BaseMethodsTests,
106+ BaseMethodsTests ,
84107 BaseMissingTests ,
85108 BaseArithmeticOpsTests ,
86109 BaseComparisonOpsTests ,
@@ -230,6 +253,77 @@ def test_unstack(self, data, index, obj):
230253 def test_getitem_ellipsis_and_slice (self , data ):
231254 pytest .skip ("ListArray does not support NumPy style ellipsis slicing nor 2-D" )
232255
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+
233327
234328def test_to_csv (data ):
235329 # https://github.com/pandas-dev/pandas/issues/28840
0 commit comments