-
Notifications
You must be signed in to change notification settings - Fork 21
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
Broadcast erroneously claims cast_on and onto_on are equivalents of left_on and right_on parameters of pandas.merge. #37
Comments
Are you getting a specific error? The onto_table = pd.merge(
onto_table, cast_table,
suffixes=['_'+onto, '_'+cast],
left_on=bc.onto_on, right_on=bc.cast_on,
left_index=bc.onto_index, right_index=bc.cast_index) However, using sequences may break other parts of the code, for example this looks like it might not properly handle lists of column names. |
The problem is on line 1808. I don't recall the exact error, but this is where things go wrong:
The comment for broadcast pretty much says it all:
It wants expects that cast_on and onto_on are strings, but pandas.merge also accepts lists. If you want the exact error, I can easily generate it. |
The error is:
generated by passing lists of strs to broadcast:
|
Yes. |
They used to be, since there were passed through as of at least orca 1.1.
But now, they are assumed to be type str (or None) whereas pandas merge accepts label or list, or array-like.
So the following, which worked under orca 1.1, no longer works:
At least the documentation should be revise, whcih currently reads:
The text was updated successfully, but these errors were encountered: