Skip to content

Commit

Permalink
TST: using -1 instead of 0 for nan replacements (pandas-dev#35498)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexhlim committed Sep 14, 2020
1 parent 834a715 commit 89137ee
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pandas/tests/indexes/test_indexing.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,18 +121,18 @@ def test_getitem_deprecated_float(idx):
np.array([1, 2], dtype=np.int64),
),
(
np.array([np.nan, 0, np.nan], dtype=object),
np.array([np.nan, -1, np.nan], dtype=object),
[np.nan],
np.array([0, 2], dtype=np.int64),
),
(
np.array([np.nan, 0, np.nan], dtype=object),
[0],
np.array([np.nan, -1, np.nan], dtype=object),
[-1],
np.array([1], dtype=np.int64),
),
(
np.array([np.nan, 0, np.nan], dtype=object),
[np.nan, 0],
np.array([np.nan, -1, np.nan], dtype=object),
[np.nan, -1],
np.array([0, 2, 1], dtype=np.int64),
),
],
Expand Down

0 comments on commit 89137ee

Please sign in to comment.