Skip to content

Commit 330be03

Browse files
code sample for pandas-dev#47105
1 parent 416ea8c commit 330be03

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

bisect/47105.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# BUG: nan comparisons behave differently on identical objects #47105
2+
3+
import numpy as np
4+
import pandas as pd
5+
6+
print(pd.__version__)
7+
8+
idx = pd.Index([np.nan])
9+
result = idx > idx
10+
print(result)
11+
12+
expected = np.array([False])
13+
pd._testing.assert_numpy_array_equal(result, expected)

0 commit comments

Comments
 (0)