Anonymization library for python
Project description
AnonyPy
Anonymization library for python
Install
$ pip install anonypy
Usage
import anonypy
import pandas as pd
def main():
path = 'data/adult.test.txt'
df = pd.read_csv(path, sep=', ', names=names, engine='python')
for name in categorical:
df[name] = df[name].astype('category')
feature_columns = ['age', 'education-num']
m = anonypy.Mondrian(df, feature_columns)
partitions = m.partition()
print(partitions)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
anonypy-0.1.1.tar.gz
(5.0 kB
view hashes)