BUG: incorrect unstacking with NaNs in the index #7403
Labels
Bug
Missing-data
np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate
Reshaping
Concat, Merge/Join, Stack/Unstack, Explode
Milestone
Related to #7401, but another issue I think. Some more strange behaviour with NaNs in the index when unstacking (but now not specifically to datetime).
First case:
The values in the first column are totally mixed up.
Second case (with repeating values in the second level):
and another error message with the NaN on the last place (of the sublevel):
I know NaNs in the index is not really recommended, but just exploring this (as I was caught by such an issue, you don't always think of looking if you have NaNs if you get such errors)
The text was updated successfully, but these errors were encountered: