Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
All-Nan MultiIndex level has different dtype than all-NaN flat Index #17929
Code Sample, a copy-pastable example if possible
In : values = [np.nan, np.nan] In : pd.Index(values).dtype Out: dtype('float64') In : pd.MultiIndex.from_arrays([values]).levels.dtype Out: dtype('O') In : pd.MultiIndex.from_arrays([values, [2, 3]]).levels.dtype Out: dtype('O')
Yes, I know, "who cares?". But this is biting me in fixing #17924.
The same - and I tend to think
Here I follow you
... here I don't: I think we should be able to have
added a commit
Oct 21, 2017
there is some ambiguity here, e.. whether  and  should match (since we use np,nan generically). Would be ok with making  float.