Skip to content

Commit

Permalink
code sample for pandas-dev#47105
Browse files Browse the repository at this point in the history
  • Loading branch information
simonjayhawkins committed May 24, 2022
1 parent 416ea8c commit 330be03
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions bisect/47105.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# BUG: nan comparisons behave differently on identical objects #47105

import numpy as np
import pandas as pd

print(pd.__version__)

idx = pd.Index([np.nan])
result = idx > idx
print(result)

expected = np.array([False])
pd._testing.assert_numpy_array_equal(result, expected)

0 comments on commit 330be03

Please sign in to comment.