I have df
subdomain search_engine search_term
0 vk.com None None
1 vk.com None None
2 facebook.com None None
3 vk.com None None
4 vk.com None vkontakte
I need to get 4 vk.com None vkontakte
I try
df[~df.search_term.str == r"None"]
But it returns TypeError: bad operand type for unary ~: 'StringMethods'
df[df['search_term'].notnull()]work?df[df['search_term']!= "None"]df['search_term'].iloc[0]andtype(df['search_term'].iloc[0])returns