We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
import pandas as pd df = pd.DataFrame({'a': [], 'b': [], 'c': []}) df = df.set_index(['a', 'b']) print df.c.index.names print df.c[df.c.isnull()].index.names
Output:
['a', 'b'] [None]
The problem is that the empty boolean mask isn't recognized as a boolean array by infer_dtype in inference.pyx.
I have a fix here: 87b9f21d0f298e35c5ec965b48b53ff17d40ab7e. If you agree with the approach I'll submit the PR.
The text was updated successfully, but these errors were encountered:
related to #4226 or #4223
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Output:
The problem is that the empty boolean mask isn't recognized as a boolean array by infer_dtype in inference.pyx.
I have a fix here: 87b9f21d0f298e35c5ec965b48b53ff17d40ab7e. If you agree with the approach I'll submit the PR.
The text was updated successfully, but these errors were encountered: