You have a CSV and you need to transform it into a better CSV, which includes filtering, clustering, parsing, merging, (...) and matching regular expressions. Why not doing it in JS? You're welcome.
http://tools.medialab.sciences-po.fr/csv-rinse-repeat/
# install dependencies listed in bower.json
$ bower install
Browse to the app/
directory, upload a CSV, add visualizations, code javascript.