Se7enSquared
10/23/2019 - 4:34 PM

Using Regular Expression with Pandas

import re

df.loc[df['column'].str.contains('regex_expression', regex=True)]

# ignore case:
df.loc[df['column'].str.contains('regex_expression', flags=re.I, regex=True)]