Skip to content

Commit d48f7bb

Browse files
committed
fix intp->int_ error
1 parent 7cebad9 commit d48f7bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/groupby/test_function.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ def test_nlargest_and_smallest_noop(data, groups, method):
787787
data = list(reversed(data))
788788
ser = Series(data, name="a")
789789
result = getattr(ser.groupby(groups), method)(n=2)
790-
expidx = np.array(groups, dtype=np.intp) if isinstance(groups, list) else groups
790+
expidx = np.array(groups, dtype=np.int_) if isinstance(groups, list) else groups
791791
expected = Series(data, index=MultiIndex.from_arrays([expidx, ser.index]), name="a")
792792
tm.assert_series_equal(result, expected)
793793

0 commit comments

Comments
 (0)