title: How to use .loc when the value of dataframe elements are list [python pandas]
body: <p>I have a dataframe <code>df</code> where the elements in <code>df.trajec</code> is a list.</p>
  
  <p>For example, <code>df.ix['smith']['trajec'] = ['a', 'b', 'c', 'a', 'b']</code></p>
  
  <p><code>type(df.ix['smith']) = list</code></p>
  
  <p>In this case, I found out that I cannot use such command.</p>
  
  <pre><code>aaa = ['a', 'b', 'c', 'a', 'b']
  df.loc[df.trajec == aaa]
  </code></pre>
  
  <p>And it gives me an error message like below.</p>
  
  <p><code>ValueError: Arrays were different lengths: 8886 vs 5</code></p>
  
  <p>Is there any way to find the subset of the dataframe <code>df</code> where <code>df.trajec</code> is equal to a list <code>aaa</code>?</p>