BUG: Index.union with both bools and ints, duplicates · Issue #44000 · pandas-dev/pandas (original) (raw)
- I have checked that this issue has not already been reported.
- I have confirmed this bug exists on the latest version of pandas.
- I have confirmed this bug exists on the master branch of pandas.
Reproducible Example
idx = pd.Index([1, True, 0, False]) idx2 = idx[1:]
idx.union(idx2) Index([0, 0, 1, 1], dtype='object')
Issue Description
Best guess is union_with_duplicates cc @phofl
Breaks at least one test in #43930
Expected Behavior
Index([1, True, 0, False], dtype=object)