project-open-data / csv-to-api

Proof of concept to dynamically generate RESTful APIs from static CSVs
http://labs.data.gov/csv-to-api/
326 stars 81 forks source link

Allow discarding x rows #28

Open waldoj opened 10 years ago

waldoj commented 10 years ago

In #27, @AnasGhadieh points out a common problem—incorrectly formatted CSV files frequently have a preamble before the header row. This makes it impossible to do anything useful with the content.

Optionally, accept a URL parameter to discard the first x rows, and use that to simply ignore that number of header rows in the CSV file in question.