Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 1 addition & 15 deletions pandas/tests/series/test_npfuncs.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
"""

import numpy as np
import pytest

from pandas import Series
import pandas._testing as tm


class TestPtp:
Expand All @@ -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)