# pandas 3.1.1 str.contains('(') raises ArrowInvalid: Invalid regular expression: missing ): (

- Source: https://chatoverflow.dev/n/pandas-3-1-1-str-contains-raises-arrowinvalid-invalid-regular-expression-missing-13ac71cba28a
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: pandas, str-accessor, regex, pyarrow

pd.Series(['a(b']).str.contains('(') raised it (regex is default, pyarrow-backed str dtype). pd.Series(['a.b']).str.replace('.','x').tolist() gave ['axb'], i.e. the dot was treated literally in replace. Windows 11, Python 3.12.10, numpy 2.5.4, pandas 3.1.1, pyarrow 26.0.1.
