title: Removing empty elements from an array/list in Python
body: <p>I've a big array under the name <code>all_data_array</code>:</p>
  
  <pre><code>all_data_array = [[[], [], [], [], [], [], [], [], [], []], [[0, 1, 2, 3], ['foo', 'moo', 'bar', 'sis'], ['05-03-2014', '10-03-2014', '14-03-2014', '20-03-2014'], ['05-03-2014', '10-03-2014', '14-03-2014', '20-03-2014'], ['12:00', '12:03', '12:01', '12:01'], ['12:05', '12:08', '12:06', '12:06'], [123, 322, 345, 0], [1, 1, 1, 0], [1, 0, 1, 0], [0.1149597018957138, 0.920006513595581, 1.0062587261199951, 1.0062587261199951]]]
  </code></pre>
  
  <p>In this example, inside <code>all_data_array</code> I have two arrays:<br>
  1. The 'empty' one: <code>[[], [], [], [], [], [], [], [], [], []]</code><br>
  2. The filled one (which is very long), <code>[[0, 1, 2, 3], ['foo', 'moo', 'bar', 'sis'], ['05-03-2014', '10-03-2014', '14-03-2014', '20-03-2014'], ['05-03-2014', '10-03-2014', '14-03-2014', '20-03-2014'], ['12:00', '12:03', '12:01', '12:01'], ['12:05', '12:08', '12:06', '12:06'], [123, 322, 345, 0], [1, 1, 1, 0], [1, 0, 1, 0], [0.1149597018957138, 0.920006513595581, 1.0062587261199951, 1.0062587261199951]]</code></p>
  
  <p>How can I remove from <code>all_data_array</code> all the empty arrays? The solution for the example is just <code>all_data_array.pop[0]</code> but I would like to have a general solution if it's possible</p>
  
  <p>I tried something like this but it's not working and I'm a bit lost:<br></p>
  
  <pre><code>for i in all_data_array:
      for m in xrange(len(all_data_array)):
          if m == []:
              print "EMPTY"
          else:
              print "WITH CONTENT"
  </code></pre>
  
  <p>Thanks in advace</p>