python loc value contains string code example
Example 1: dataframe column contains string
df[df['A'].str.contains("hello")]
Example 2: panda search strings in column
df[df['A'].str.contains("hello")]
df[df['A'].str.contains("hello")]
df[df['A'].str.contains("hello")]