-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Dataframe Where Dataframe == False Returns Dataframe with Floats #10336
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
when you insert |
I'm sorry but I'm just a lowly, humble pandas newbie and didn't even know about the hierarchy of classes you just mentioned. This question came about more from mere curiosity while I was following the pandas cookbook tutorials and learning about masks. The tutorials set values to integers so I was curious what |
The problem is actually with
|
@kawochen that line is ok, it correctly returns the correct result. It then needs to be coerced as a |
These looks to work on master now. I supposed could use a test
|
If I have a Dataframe with True/False values only like this:
Then try to
print
where the values in the dataframe is equivalent toFalse
like so:My question is about column
CCC
. ColumnBBB
shows False (as I expect) but why isindex 1
and3
in columnCCC
equal to0
instead ofFalse
?Why doesn't it return a dataframe that looks like this?
I was asked to post this question here. I originally posted this on StackOverflow here.
The text was updated successfully, but these errors were encountered: