-
An example of anonymation process done with Elixir
-
I created two tasks that correspond to the two requested programs:
-repot_task mix report_task "../data/"
-agregate_task mix aggregate_task "airline"
-
Aggregation involve just one particular type of purchase. In our case "airline" purchases. The type will be passed as parameter and the aggregate task will filter the purchases by letting in just the one indicated on the param.
-
Obviously the derived values differ from the values indicated in your README.mmd cause we're A nonymizing the data. This involves removing some occurrences.
-
I tried to work with the simplest structures. Even if many times I couldn't really keep the structures simple I could in the end produce a normal list of user preferences.
from the root folder: cd preferences mix deps.get
from the root folder: cd preferences mix report_task "../data/"
this will fill a directory "../output" To process the latter, please write as folllow:
mix aggregate_task "airline"
the result will be printed on the screen. Please notice that the report task add new files to the output directory without removing anything. So you'll have wrong data.
Many thanks, Virgilio