I am trying to filter rows in dataframe by multiple strings and I have searched and found this
search_values = ['vba','google']
df[df[0].str.contains('|'.join(search_values), case=False)]
But this I think based on finding either of the two strings vba
or google
. How can I join the both strings to be used AND
not OR
. I mean that the filter should be done if both the strings are there in the column so if this sentence for example I mean vba will be with google in one sentence
. This row would be selected because it has both vba
and google