fun writeRows(rows: MutableList<Map<String, Any>>): Long
writes out a list of key/value pairs contained in rows to a csv. The key is the column name, and the value is the data value for the column. Returns the number of rows written.