-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
pandas 0.23 fails on column<->index boolean merge #21119
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
@crepererum : Thanks for reporting this! Was this working on a previous version by any chance? |
Yes, the expected output was produced by Does pandas, by any chance, have some infrastructure for bisecting the commit / merge that introduced the issue? |
|
I know GIT does the job, I just thought there may be already be some scripts to simplify the build + test process or even an archive of pre built wheels for every master commit. Anyway, no worries, I'll see what if I find the the commit this week. |
|
The problem here is: the check introduced is in this commit does the correct thing. The index dtype is wrong (it's
Or in other words: the index dtype is wrong in both versions, the check that was introduced in-between just makes the problem visible. |
@crepererum Thanks for figuring that out. So we will have to 'infer' the dtype of the index to cover those cases. |
Yes, fully correct, we've come to the same conclusion :-) |
BTW: the problem is NOT specific to indices. This code also doesn't work:
This is especially bad because pandas uses |
@crepererum yes, that's indeed also a reason for having object boolean columns. |
Code Sample, a copy-pastable example if possible
Problem description
On Pandas
0.23
, I get the following Exception:Expected Output
Output of
pd.show_versions()
The text was updated successfully, but these errors were encountered: