SyntaxFix
Write A Post
Hire A Developer
Questions
Use contains instead:
In [10]: df.b.str.contains('^f') Out[10]: 0 False 1 True 2 True 3 False Name: b, dtype: bool