(dup)
| 625 | |
| 626 | @pytest.mark.parametrize("dup", [1, np.nan]) |
| 627 | def test_union_nan_in_both(dup): |
| 628 | # GH#36289 |
| 629 | a = Index([np.nan, 1, 2, 2]) |
| 630 | b = Index([np.nan, dup, 1, 2]) |
| 631 | result = a.union(b, sort=False) |
| 632 | expected = Index([np.nan, dup, 1.0, 2.0, 2.0]) |
| 633 | tm.assert_index_equal(result, expected) |
| 634 | |
| 635 | |
| 636 | def test_union_rangeindex_sort_true(): |