title: How to remove elements of lists in a dictionary of lists?
body: <p>I am attempting to filter out pesky <strong><em>None</em></strong> values from a dictionary of lists. Here is an example dictionary:</p>
  
  <pre><code>parsed_data = {'DATA1': [None, None, None, None, None, None, None, None, None, None, None,
       None, None, None, None, None, None, None, None, '0.17998362', '0.06388072',
       '0.02091766', None, '0.00602364', '0.03171121', None, '1.39579976', '0.16731957',
       '0.21564664', '0.03516583'], 'DATA2': [None, None, None, None, None, None, None,
       None, None, None, None, None, None, None, None, None, None, None, None, None,
       None, None, None, None, None, None, None, None, None, None, None, None], 'DATA3':
       [None, None, None, None], 'DATA4': ['0.18406565', '0.06776296', '0.14278403',
       '0.11962064', '0.00998447']}
  </code></pre>
  
  <p>I thought this dictionary comprehension would work, but it removes the entire key if it finds <strong><em>None</em></strong> anywhere in the list. </p>
  
  <pre><code>filtered = {x:y for x,y in parsed_data.items() if len(y)&gt;0 and None not in y}
  </code></pre>
  
  <p>I also tried doing a dictionary comprehension with a nested list comprehension but it looked insane and made by brain melt a little just by looking at it.</p>