title: Select rows from a DataFrame based on list values in a column in pandas
body: <p>I am new to pandas and I have a simple dataframe and want to extract certain rows based on a column. However, <strong>the type in this column is a list</strong>.</p>
  
  <p>Example:</p>
  
  <pre><code>df = pd.DataFrame([['text1', [1,2,3]], ['text2', [2,3,4]]], columns=['text','list_value'])
  </code></pre>
  
  <p>The data frame looks like:</p>
  
  <pre><code>    text    list_value
  0   text1   [1, 2, 3]
  1   text2   [2, 3, 4]
  </code></pre>
  
  <p>I tried </p>
  
  <pre><code>df.loc[df['list_value'] == [1,2,3]]
  </code></pre>
  
  <p>And it returns an error :</p>
  
  <pre><code>ValueError: Arrays were different lengths: 2 vs 3
  </code></pre>
  
  <p>I wonder if there is any better solution than using for loop to iterate the dataframe.</p>
  
  <p>Similar question but the solution is not work for me: <a href="https://stackoverflow.com/questions/17071871/select-rows-from-a-dataframe-based-on-values-in-a-column-in-pandas">Select rows from a DataFrame based on values in a column in pandas</a>.</p>