title: Copy keys to a new dictionary (Python)
body: <p>I'm reading a csv file, using DictReader().  The function returns a dictionary, where the header items are the keys and the cells are the values.  Pretty cool.</p>
  
  <p>But I'm trying to account for rows where the data may not be what I expect it to be.  In that case (I'm catching a ValueError exception), I would like the rows that are 'suspect' to go into a separate dictionary, for manual processing.</p>
  
  <p>My question is this: since my first dictionary (the object returned by DictReader) has all of its keys set up properly, how do I copy <strong>just the keys</strong> into my second dictionary, the one which I want to be just a dictionary of suspect rows, to be manually processed?</p>
  
  <p>I've been toying around with dict.fromkeys() and such for a while now and I'm just not getting anywhere.  Halp!</p>
  
  <p>EDIT:  Pasting some of my erroneous code.  Going to go hide in shame of my code.  Don't judge me! ;-)</p>
  
  <pre><code>unsure_rows = dict.fromkeys(dict(csv_reader).keys(), [])
  for row in csv_reader:
  #   if row['Start Time'] != 'None':
      try:
          if before_date &gt; strptime(row['Start Time'], '%Y-%m-%d %H:%M:%S') &gt; after_date:
              continue
      except ValueError:
          unsure_rows += row
  </code></pre>
  
  <p>ValueError: dictionary update sequence element #0 has length 13; 2 is required</p>