-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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: bool methods are wrong with DataFrame and Series (or at least wrong error) #5035
Comments
I don't think this implemented per se, may have to manually broadcast the operands (the numeric ops might do this, not sure why bool not) |
It's weird, bool and numeric use the same |
Similarly, how about this, is this right? In [2]: from pandas import *
In [3]: ser = Series(range(10))
In [4]: df = DataFrame({'a': ser})
In [6]: df + ser
Out[6]:
0 1 2 3 4 5 6 7 8 9 a
0 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN
1 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN
2 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN
3 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN
4 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN
5 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN
6 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN
7 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN
8 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN
9 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN |
it aligns on the oclumns by default, and |
so yes it's correct |
to align on the index u have to do:
|
0.14 or 0.13? |
well, it's long-standing, so probably fine to push to 0.14. |
produces Traceback:
s & d
currently raisesNotImplemented
instead. (because there's no__rand__
)The text was updated successfully, but these errors were encountered: