From 1c44b8bb511d365a48735c09b40dce01c90aea33 Mon Sep 17 00:00:00 2001 From: Dawid Makar Date: Wed, 27 Sep 2023 01:07:14 +0200 Subject: [PATCH] Automatic refactoring. Refactoring step id: UUID('c65aaca8-2832-4ad5-86fa-596651109421') --- pandas/tests/series/test_npfuncs.py | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/pandas/tests/series/test_npfuncs.py b/pandas/tests/series/test_npfuncs.py index 6a575ab85943a..548fd7d2c469c 100644 --- a/pandas/tests/series/test_npfuncs.py +++ b/pandas/tests/series/test_npfuncs.py @@ -3,10 +3,8 @@ """ import numpy as np -import pytest from pandas import Series -import pandas._testing as tm class TestPtp: @@ -20,16 +18,4 @@ def test_ptp(self): def test_numpy_unique(datetime_series): # it works! - np.unique(datetime_series) - - -@pytest.mark.parametrize("index", [["a", "b", "c", "d", "e"], None]) -def test_numpy_argwhere(index): - # GH#35331 - - s = Series(range(5), index=index, dtype=np.int64) - - result = np.argwhere(s > 2).astype(np.int64) - expected = np.array([[3], [4]], dtype=np.int64) - - tm.assert_numpy_array_equal(result, expected) + np.unique(datetime_series) \ No newline at end of file