Skip to content

Commit

Permalink
adding pd.NaT to tested null-objects
Browse files Browse the repository at this point in the history
  • Loading branch information
realead committed Nov 9, 2021
1 parent 088b494 commit 792cb7b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pandas/tests/libs/test_hashtable.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,9 +454,10 @@ def test_mode_stable(self, dtype, writable):

def test_modes_with_nans():
# GH42688, nans aren't mangled
values = np.array([True, pd.NA, np.nan, pd.NA, np.nan], dtype=np.object_)
nulls = [pd.NA, np.nan, pd.NaT, None]
values = np.array([True] + nulls * 2, dtype=np.object_)
modes = ht.mode(values, False)
assert modes.size == 2
assert modes.size == len(nulls)


def test_unique_label_indices_intp(writable):
Expand Down

0 comments on commit 792cb7b

Please sign in to comment.