Skip to main content

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(anonypy.is_k_anonymous)
    print(partitions)

Project details


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.0.2.tar.gz (4.9 kB view hashes)

Uploaded Source

Built Distribution

anonypy-0.0.2-py3-none-any.whl (6.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page