Skip to content

BUG: Fix Series.str.contains with compiled regex on Arrow strings (#61942) #61945

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

Conversation

Aniketsy
Copy link

#61942

This PR improves the handling of this case:
If the compiled regex has no flags, we extract the pattern string and proceed.
If the regex includes flags, a clear NotImplementedError is raised with guidance.
This avoids a confusing low-level PyArrow TypeError and ensures consistent behavior with non-Arrow strings.

Please , suggest feedback if my approach is not correct . I would love to improve and fix this.

@Aniketsy Aniketsy closed this Jul 25, 2025
@Aniketsy Aniketsy deleted the fix-arrow-contains-compiled-regex branch July 25, 2025 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant