Skip to content

BUG: fix str.contains for series containing only nan values #14182

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

Conversation

josh-howes
Copy link
Contributor

convert = False
else:
convert = True
result = lib.map_infer_mask(arr, f, mask.view(np.uint8), convert)
Copy link
Contributor

@jreback jreback Sep 8, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just do convert = mask.all()

@jreback jreback added Bug Strings String extension data type and string data labels Sep 8, 2016
@codecov-io
Copy link

codecov-io commented Sep 8, 2016

Current coverage is 85.24% (diff: 100%)

Merging #14182 into master will increase coverage by <.01%

@@             master     #14182   diff @@
==========================================
  Files           140        140          
  Lines         50549      50550     +1   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits          43090      43091     +1   
  Misses         7459       7459          
  Partials          0          0          

Powered by Codecov. Last update d8cd33b...c7e9721

@josh-howes josh-howes force-pushed the bugfix/14171-series-str-contains-only-nan-values branch from b4a5219 to c7e9721 Compare September 8, 2016 10:35
@jreback jreback added this to the 0.19.0 milestone Sep 9, 2016
@jreback jreback closed this in 289cd6d Sep 9, 2016
@jreback
Copy link
Contributor

jreback commented Sep 9, 2016

thanks! nicely done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Strings String extension data type and string data
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Series.str.contains doesn't correct if series contains only nan values.
3 participants