Skip to content

dtype of result of string comparison wrong #820

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

Closed
adamklein opened this issue Feb 23, 2012 · 0 comments
Closed

dtype of result of string comparison wrong #820

adamklein opened this issue Feb 23, 2012 · 0 comments
Labels
Milestone

Comments

@adamklein
Copy link
Contributor

Recreation from mailing list, works in 0.7 but not in master:

from pandas import *
df = DataFrame([{ "a" : 1, "b" : "foo" }, {"a" : 2, "b" : "bar"}])
print df
mask_a = df.a > 1
print "Mask A"
print mask_a
print mask_a.dtype
print df[mask_a]
print df[-mask_a]

mask_b = df.b == "foo"
print "Mask B"
print mask_b
print mask_b.values.dtype
print df[mask_b]
print df[-mask_b]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant