title: How to filter rows containing empty lists in a pandas DataFrame?
body: <p>I have a DataFrame that looks like this:</p>
  
  <pre><code>A    B    C    D
  foo  foo  foo  ['list_value']
  bar  bar  bar  ['list_value', 'another_list_value']
  baz  baz  baz  []
  </code></pre>
  
  <p>How can I filter out the empty list? I'm trying <code>.isin</code> but it throws me an error:</p>
  
  <pre><code>df[df['D'].isin([])]
  
  SystemError: &lt;built-in method view of numpy.ndarray object at 0x0000017ECA74BF30&gt; returned a result with an error set
  </code></pre>
  
  <p>I also checked <a href="https://stackoverflow.com/questions/53513/how-do-i-check-if-a-list-is-empty">this</a> question but couldn't figure out how to implement in a DataFrame context.</p>
  
  <p>Any help would be very appreciated.</p>