how to filter out rows using substring in pandas code example Example: pandas filter string contain df[df['A'].str.contains("hello")]