title: Print csv to console
body: <p>I am reading in a csv file with ten lines to transfer to JSON, console output as below. Python code attached. First step is to print csv data to console and error below occurring. </p>
  
  <p>Syntax errors were occurring but after fixing them this error has began.</p>
  
  <pre><code>data = {}
  with open(csvFilePath) as csvFile:
      csvReader = csv.DictReader(csvFile)
      for csvRow in csvReader:
          hmid = csvRow["hmid"]
          data[hmid] = csvRow 
  </code></pre>
  
  <p>Console output:</p>
  
  <pre><code>python csvjson.py
  Traceback (most recent call last):
    File "csvjson.py", line 12, in &lt;module&gt;
      hmid = csvRow["hmid"]
  KeyError: 'hmid'
  </code></pre>
  
  <p>Expected Output: </p>
  
  <p>Prints out the CSV data to conole.</p>