Skip to content
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

BUG: MultiIndex not dropping nan level and invalid code value #26408

Merged
merged 17 commits into from
Jun 1, 2019
Merged
14 changes: 7 additions & 7 deletions doc/source/whatsnew/v0.25.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -97,18 +97,18 @@ would be reassigned as -1. (:issue:`19387`)

.. code-block:: ipython

MultiIndex(levels=[[nan, None, NaT, 128, 2]],
codes=[[0, -1, 1, 2, 3, 4]])
MultiIndex(levels=[[1, 2]],
codes=[[0, -2]])
Out[1]: MultiIndex(levels=[[nan, None, NaT, 128, 2]],
jreback marked this conversation as resolved.
Show resolved Hide resolved
codes=[[0, -1, 1, 2, 3, 4]])
Out[2]: MultiIndex(levels=[[1, 2]],
codes=[[0, -2]])

*New Behavior*:

.. ipython:: python
.. ipython:: ipython

MultiIndex(levels=[[nan, None, NaT, 128, 2]],
Out[1]: MultiIndex(levels=[[nan, None, NaT, 128, 2]],
codes=[[-1, -1, -1, -1, 3, 4]])
ValueError: On level 0, code value (-2) < -1
Out[2]: ValueError: On level 0, code value (-2) < -1


.. _whatsnew_0250.api_breaking.groupby_apply_first_group_once:
Expand Down