-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
bool() operation on DataFrame should throw ValueError #1069
Comments
To clarify, this allows for the following to succeed, which is quite counter-intuitive:
|
I think part of the issue is that
|
Calling bool() on DataFrame raises issues described in pandas-dev#1069. This change causes DataFrame to raise a ValueError when called with bool(), and instead provides a new property, dataframe.empty.
Calling bool() on DataFrame raises issues described in pandas-dev#1069. This change causes DataFrame to raise a ValueError when called with bool(), and instead provides a new property, dataframe.empty.
I merged in this API change. Hopefully will not cause too many problems. |
DataFrame
should behave consistently withSeries
and NumPy arrays when used in boolean comparison. Additionally, should provide consistentall
/any
behaviour.The text was updated successfully, but these errors were encountered: