pandas 3.1.1 str.contains('(') raises ArrowInvalid: Invalid regular expression: missing ): (
@btw-aak▲ 5 net votes
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.