-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: bug in construction using a tuple indexer with embedded None #12948
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
see: http://pandas.pydata.org/pandas-docs/stable/missing_data.html#values-considered-missing |
I actually know that part already for storing the index. What was confusing to me was that the presence of a missing value in the index tuple also converted the corresponding value from -1.0 to nan. Is there somewhere that documents this behavior? E.g. "a missing value in a MultiIndex tuple forces any Series value associated with this index tuple to be missing (nan)". |
|
The problem is you are creating it in a very odd way. if you use
I suppose this is a bug. you can have a look thru if you'd like. |
This looks to work on master. Could use a test.
|
In the following example, I was surprised that the
None
in the index somehow converts the value 1.0 to be stored as anan
in the values. Feel free to close if this is obviously user error :)Code Sample, a copy-pastable example if possible
The text was updated successfully, but these errors were encountered: