title: Is there a way to ignore columns with empty headers when using SmarterCSV?
body: <p>I have a client who wants to maintain a broad span of flexibility when submitting CSV files to be uploaded. I've been using SmarterCSV to process the files, but have hit a snag where there are gaps in the columns of information--essentially the header line looks something like this:</p>
  <p><code>'header1',,,,,'header2','header3'</code></p>
  <p>SmarterCSV gives me this error:</p>
  <p><code>SmarterCSV::DuplicateHeaders (ERROR: duplicate headers: ,,,,,,,,,)</code></p>
  <p>Does anyone know of a way to have SmarterCSV just skip columns without headers and move on? I've tried something akin to the following with no luck:</p>
  <pre><code>options = {strip_whitespace: true, key_mapping: {nil =&gt; nil}
  records = SmarterCSV.process(&quot;#{path}#{csv_file}&quot;, options)
  </code></pre>
  <p><strong>EDIT:</strong></p>
  <p>I've also tried this, and it allows me to complete the processing, but results in an empty array:</p>
  <pre><code>options = {
        strip_whitespace: true, 
        key_mapping: {'' =&gt; nil},
        remove_unmapped_keys: true
      }
      records = SmarterCSV.process(&quot;#{path}#{csv_file}&quot;, options)
  </code></pre>