title: Count how many elements are empty lists per column in a Data Frame
body: <p>For obtaining the statistics, I need to know how many missing elements there are per column. This includes empty lists and empty dictionaries. But, they are not counted in isna() so I need an alternative.</p>
  <p>I get my data from line delimited jsons.</p>
  <p>Edit:
  A variation of the answer below worked for me:</p>
  <pre class="lang-py prettyprint-override"><code>for col in var.columns:
      print(col + &quot;: &quot; + str(var[col].apply(lambda x: 1 if x is not None and len(x) == 0 else 0).sum()))
  </code></pre>