python select row where column contains string code example Example: pandas filter string contain df[df['A'].str.contains("hello")]