I\'m wondering if there is a more efficient way to use the str.contains() function in Pandas, to search for two partial strings at once. I want to search a given column in a
I try this one and it's work:
df[df['Behavior'].str.contains('nt|nv', na=False)]