Use contains instead:
In [10]: df.b.str.contains('^f')
Out[10]:
0 False
1 True
2 True
3 False
Name: b, dtype: bool
More Related Contents:
- Fast punctuation removal with pandas
- Create Pandas DataFrame from txt file with specific pattern
- How to remove parentheses and all data within using Pandas/Python?
- re.sub erroring with “Expected string or bytes-like object”
- Strip / trim all strings of a dataframe
- pandas applying regex to replace values
- FutureWarning: The default value of regex will change from True to False in a future version
- applying regex to a pandas dataframe
- Python: UserWarning: This pattern has match groups. To actually get the groups, use str.extract
- How to use str.contains() with multiple expressions in pandas dataframes
- How to parse complex text files using Python?
- How do I select rows from a DataFrame based on column values?
- Pandas Melt Function
- Reversing a regular expression in Python
- Pandas: Multiple columns into one column
- FailedPreconditionError: Attempting to use uninitialized in Tensorflow
- Pandas: Subindexing dataframes: Copies vs views
- pandas DataFrame output end of csv
- Comparing floats in a pandas column
- Pandas sparse dataFrame to sparse matrix, without generating a dense matrix in memory
- Dictionary column in pandas dataframe
- How do I split a string into several columns in a dataframe with pandas Python?
- Pandas: combining header rows of a multiIndex DataFrame
- pandas groupby and join lists
- Row-wise average for a subset of columns with missing values
- Dynamically filtering a pandas dataframe
- How to unpack a Series of tuples in Pandas?
- Python: Replace with regex
- pandas to_sql all columns as nvarchar
- How to GroupBy a Dataframe in Pandas and keep Columns