Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Implement __nonzero__ #3691
Comments
|
This is pretty easy, but trying to rememeber if we there was a reason for not supporting this.... If you would like to do a PR (and see if anything else breaks) (and prob should do this for Series and for NDFrame)
|
|
Isn't there a |
|
@cswegger yep there is, but this is actually a aslight API change |
jreback
closed this
in #3696
May 30, 2013
|
closed by #3696 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
dgelvin commentedMay 24, 2013
It would be nice if dataframe instances implemented
__nonzero__so you could test if a dataframe is empty or not as if it were a boolean.