Skip to content

BUG, TST: Fix pandas.core.strings.str_contains when handling regex=False and case=False #7505

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

benjwadams
Copy link
Contributor

pandas.core.strings.str_contains does not match in a case insensitive fashion at all when given regex=False and case=False. This PR should fix the situation. Additionally, there is test coverage for pandas.core.strings.str_contains case insensitive matching both with and without regular expressions enabled.

pandas.core.strings.str_contains should now match case insensitivity properly if given regex=False and case=False.  Also added test cases for case insensitive pandas.core.strings.str_contains with and without regex.
@jreback
Copy link
Contributor

jreback commented Jun 18, 2014

pls add a release note in v0.14.1 (bug fix section), you can ref this PR

@jreback jreback added this to the 0.14.1 milestone Jun 18, 2014
@jreback
Copy link
Contributor

jreback commented Jun 19, 2014

@cpcloud @jorisvandenbossche ok by you?

@jreback
Copy link
Contributor

jreback commented Jun 26, 2014

@cpcloud @jorisvandenbossche ok?

@jorisvandenbossche
Copy link
Member

looking good. @benjwadams can you squash the two commits?

@jreback jreback merged commit 6116d43 into pandas-dev:master Jun 30, 2014
@jreback
Copy link
Contributor

jreback commented Jun 30, 2014

@benjwadams thanks!

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.

3 participants