title: Check if value from a dataframe column is in a list - Python
body: <p>I have a dataframe with customer data, and the customer name is in a column called "customer". I also have a list of "members". Some of the customers are also in the members list, but some are not. If the customer is a member, I want it to be TRUE, if not, then FALSE. </p>
  
  <p>Here's what I have: </p>
  
  <pre><code>df[customer].isin([members])
  </code></pre>
  
  <p>but the error is telling me "unhashable type: 'list' ". </p>
  
  <p>I've also tried: </p>
  
  <pre><code>df[customer] in [members]
  </code></pre>
  
  <p>and the error tells me "arrays were different lengths: 118816 vs 1171"</p>
  
  <p>Any help would be appreciated!</p>