title: Pandas - using isin to return if column contains any values in a list, rather than all
body: <p>Sorry for a somewhat basic question, pretty new to python / pandas.</p>
  
  <p>I'm trying to create a column from my database that returns True or False as to whether another column contains any (not all) string from a list of strings. Currently my code looks like this:</p>
  
  <pre><code>keywords_list = ["foo, bar, ..etc]
  
  df['relevant'] = df['Description'].isin(keywords_list)
  </code></pre>
  
  <p>I know that my 'Description' column contains some of the values in the list, but it is returning all as false. I've looked at similar stackoverflow questions (see below), and they all say to do what I am doing. But the pandas documentation (also below) says that isin only works if it contains all the values in the list. Is there a function I can use that will return if the column includes any of the values in the list? Please help!</p>
  
  <p><a href="https://stackoverflow.com/questions/28914078/filter-out-rows-based-on-list-of-strings-in-pandas">Filter out rows based on list of strings in Pandas</a>
  <a href="https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.isin.html" rel="nofollow noreferrer">https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.isin.html</a></p>