You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The self.levels statement does not hand the nans over. But even fixing this returns
[ 0 -1]
[-1 1]
The error must be somewhere deeper, but I could not figure out where something goes wrong. Tested on 1.0.5 and 0.25.3. Does not seem to be a regression.
Output of pd.show_versions()
master
The text was updated successfully, but these errors were encountered:
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
(optional) I have confirmed this bug exists on the master branch of pandas.
Note: Please read this guide detailing how to provide the necessary information for us to reproduce your bug.
Code Sample, a copy-pastable example
Problem description
This snippet returns
Expected Output
It should return
[-1, 1]
for both statement.Part of the problem is in
pandas/pandas/core/indexes/multi.py
Lines 1045 to 1064 in 54fa3da
The
self.levels
statement does not hand thenans
over. But even fixing this returnsThe error must be somewhere deeper, but I could not figure out where something goes wrong. Tested on 1.0.5 and 0.25.3. Does not seem to be a regression.
Output of
pd.show_versions()
master
The text was updated successfully, but these errors were encountered: