isna
does not work with explicit MultiIndex nan-representation
#25
Labels
bug
Something isn't working
isna
does not work with explicit MultiIndex nan-representation
#25
MultiIndex
normally use-1
entries in.codes
, which is correctly checked byisna
, but.groupby(..., dropna=False)
addsNaN
to the end of.levels
and uses their code instead.Minimal demonstration:
while all the regular
MultiIndex
constructors consolidate theNaN
values to-1
It looks like this leads to all sorts of subtle bugs in pandas itself: pandas-dev/pandas#29111 , pandas-dev/pandas#36060 , pandas-dev/pandas#30750 ,
pandas-dev/pandas#43814 .
The text was updated successfully, but these errors were encountered: