title: Drop dataframe columns where rows value is like '[ ]'
body: <p>In my dataframe there are few rows in which the value is like "[]" and I want to drop the whole column, how to get it done?</p>
  
  <p><a href="https://i.stack.imgur.com/w7dTi.png" rel="nofollow noreferrer">Data Frame Image</a>
  And Here's my code</p>
  
  <pre><code>import re
  
  for i, row in df.iterrows():
      for j, column in row.iteritems():
        #print(column)
        #print(j)
        t = re.findall("\[\]", column)
        if t:
          df.drop(j, axis=1, inplace=True)
        else:
          print('Nothing'+j)
  </code></pre>
  
  <p>and here's the error I get</p>
  
  <pre><code>TypeError                                 Traceback (most recent call last)
  &lt;ipython-input-72-927572386a36&gt; in &lt;module&gt;
        3     #print(column)
        4     #print(j)
  ----&gt; 5         t = re.findall("\[\]", column)
        6         if t:
        7             df.drop(j, axis=1, inplace=True)
  
  /anaconda3/lib/python3.7/re.py in findall(pattern, string, flags)
      221 
      222     Empty matches are included in the result."""
  --&gt; 223     return _compile(pattern, flags).findall(string)
      224 
      225 def finditer(pattern, string, flags=0):
  
  TypeError: expected string or bytes-like object
  </code></pre>