BUG: Pandas Index fails with bitwise
ufuncs
#46769
Labels
Bug
Compat
pandas objects compatability with Numpy or Python functions
Index
Related to the Index class or subclasses
Numeric Operations
Arithmetic, Comparison, and Logical operations
Regression
Functionality that used to work in a prior pandas version
Milestone
Pandas version checks
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 main branch of pandas.
Reproducible Example
Issue Description
When calling bitwise numpy ufuncs on Index objects, they seem to return wrong results. For instance
numpy.bitwise_and
,numpy.bitwise_or
andnumpy.bitwise_xor
are the ones that worked correctly until pandas 1.3.5 and returning wrong results afterwards.Expected Behavior
Installed Versions
Replace this line with the output of pd.show_versions()
The text was updated successfully, but these errors were encountered: