cdaller / multi_anonymizer Goto Github PK
View Code? Open in Web Editor NEWAnonymize connected data in multiple csv or xml files
License: Apache License 2.0
Anonymize connected data in multiple csv or xml files
License: Apache License 2.0
Not working
It would awesome to have a auto / multi-column anonymisation feature, using regexp where possible (IBAN, card numbers, email, national personal identification code) and dictionaries [1] for names / geo names, per country.
In a lot of cases (some bank statements) variables/attributes are not stand-alone, but bundled in one cell.
[1] name-dataset, forebears.io, firstname-database, topics/surnames.
I assumed a csv tool would default to ',' as the delimiter, but this defaults to ';'. This is mentioned in the terminal help, but not the readme, and the failure mode is an IndexError, which is confusing:
Traceback (most recent call last):
File "./csv_anonymizer.py", line 152, in <module>
anonymize(source, target, column_index, int(ARGS.headerLines), ARGS.encoding, delimiter)
File "./csv_anonymizer.py", line 96, in anonymize
for row in anonymize_rows(reader, columnIndex):
File "./csv_anonymizer.py", line 74, in anonymize_rows
if len(row[columnIndex].strip()) > 0:
IndexError: list index out of range
(Because csv_anonymizer assumes ';', and your csv uses ',', csv_anonymizer is likely to treat a row as a single large field, and thus fail if given a columnIndex > 0.)
In addition to mentioning --delimiter in the readme, perhaps a try/except around that error, with a user-friendly warning if len(row) == 1?
How to use
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.