python get row that equals string code example
Example 1: get columns containing string
df2 = df.filter(regex='spike')
print(df2)
Example 2: panda search strings in column
df[df['A'].str.contains("hello")]
df2 = df.filter(regex='spike')
print(df2)
df[df['A'].str.contains("hello")]