Colander: program to de-identify dates
Author: endrebak
Config file format:
input_file_name|output_file_name (!= input file name)|columns containing dates|column containing pid
CSV/sykehus_avd.csv|CSV/sykehus_avd_anon.csv|6,5,7|-13
CSV/tjenester.csv|CSV/tjenester_anon.csv|4,5|6
CSV/brukere.csv|CSV/brukere_anon.csv|1|5
CSV/saker.csv|CSV/saker_anon.csv|0,1|8
NB: first row, third column, first number is the index number of the column which contains the first date
NB: first row, third column, first number is the index of the column which contains the date you wish to base the recomputation of all the other dates on. It is 6 in this example.
Usage:
adjust config file, run "python Colanderapp.py"
Files:
Notes:
not tested on real data