forked from ceumicrodata/complex-to-psql-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
14 lines (12 loc) · 731 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
complex-to-psql-tools
=====================
Provides some Complex-data specific tools (raw -> consistent -> Postgresql):
- `drop-invalid-dates comma,separated,date,fields input.csv output.csv`
converts `date` fields to Python dates, fields failing to convert are replaced with None/null
- `generate-date-fixer R_export.txt.xls`
generate a script suitable for `parallel --gnu` that will create fixed rovat csvs when run
- `create-table-fields R_export.txt.xls`
creates `rovat_n.fields` files to be used by `csv_to_psql`
- `rovat-to-psql rovat_n.csv rovat_n.fields`
helps loading `rovat_n.csv` properly into Postgres (uses `csv_to_psql`)
creates table with correct field types and primary key on (`ceg_id`, `alrovat_id`)