mbostock/d3 — pull request #1333 by jasondavies (2013-06-21 11:16:40+00:00)
Title: Optional accessor function for dsv.format[Rows].

This makes the formatting API fully symmetric with parsing.

@paulsputer needed to format a subset of an object’s properties for each row, so I suggested using csv.formatRows(rows.map(…)). However, this does not output field headings, and it would be cleaner to use csv.format(rows, accessor) for symmetry with parsing rather than having to roll your own.