CSVfix is a tool for manipulating CSV data
code.google.com
code.google.com
[0] https://github.com/onyxfish/csvkit
https://github.com/dbro/csvquote
Apply it first, then do the normal processing with GNU coreutils and you'll cover most use cases.
I want a way to use Open Refine and export the code to Python.
CREATE EXTENSION file_fdw;
CREATE SERVER my_server FOREIGN DATA WRAPPER file_fdw;
CREATE FOREIGN TABLE my_csv (
field_a text,
field_b smallint,
...
) SERVER my_server
OPTIONS ( filename 'some/file/path.csv', format 'csv', header 'true' );
select * from my_csv;I'm frequently surprised by how popular that project remains:
* http://steve.org.uk/Software/asqlIt takes some time to get used to the workflow, but it's very powerful and does a great job making messy data usable.
http://technet.microsoft.com/en-us/scriptcenter/dd919274.asp...