Skip to content

Commit d1dd5fa

Browse files
committed
Remove the code related to test_argsort_nan_loc
1 parent effe18c commit d1dd5fa

File tree

3 files changed

+0
-18
lines changed

3 files changed

+0
-18
lines changed

pandas/tests/extension/base/methods.py

-6
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,6 @@ def test_argsort_missing(self, data_missing_for_sorting):
4444
expected = pd.Series(np.array([1, -1, 0], dtype=np.int64))
4545
self.assert_series_equal(result, expected)
4646

47-
def test_argsort_nan_loc(self, data_multiple_nan):
48-
# GH 21801
49-
result = data_multiple_nan.argsort()
50-
expected = np.array([3, 9, 7, 1, 0, 6, 2, 4, 5, 8])
51-
tm.assert_numpy_array_equal(result, expected)
52-
5347
@pytest.mark.parametrize('ascending', [True, False])
5448
def test_sort_values(self, data_for_sorting, ascending):
5549
ser = pd.Series(data_for_sorting)

pandas/tests/extension/decimal/test_decimal.py

-6
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,6 @@ def data_missing_for_sorting():
4646
decimal.Decimal('0')])
4747

4848

49-
@pytest.fixture
50-
def data_multiple_nan():
51-
return DecimalArray([decimal.Decimal(x) for x in
52-
[5, 4, np.nan, 1, np.nan, np.nan, 6, 3, np.nan, 2]])
53-
54-
5549
@pytest.fixture
5650
def na_cmp():
5751
return lambda x, y: x.is_nan() and y.is_nan()

pandas/tests/extension/json/test_json.py

-6
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,6 @@ def data_missing_for_sorting():
5050
return JSONArray([{'b': 1}, {}, {'a': 4}])
5151

5252

53-
@pytest.fixture
54-
def data_multiple_nan():
55-
return JSONArray([{'e': 5}, {'d': 4}, {}, {'a': 1}, {},
56-
{}, {'f': 6}, {'c': 3}, {}, {'b': 2}])
57-
58-
5953
@pytest.fixture
6054
def na_value(dtype):
6155
return dtype.na_value

0 commit comments

Comments
 (0)