Make it possible to add a CSV column to a row
satabin opened this issue · comments
Lucas Satabin commented
The CSV row update
function does not add a column to the row if it wasn't present. In some use cases one might want to had a column (the same way we can delete one).
It should be possible to have a behavior that replaces or add if not present. Behavior is defined as:
- When setting by header name, add the header to the end
- It is not possible to have the same behavior for index based access, as this opens for weird behaviors when setting a column by index on rows with headers
When performing this in the stream, it should be up to the caller to ensure that the resulting stream is valid (i.e., all rows have the same columns in the result).
Lucas Satabin commented
Fixed by #218