Skip to content

NastyaStrashnova/cellkey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cellkey

Method applies noise to statistical tables.

Python solution for the Cell Key method, inspired by the 'cellkey' R package.
The solution also utilizes the 'ptable' library, which is written in R.

Usage

An example of how to use the method.

from cellkey import CellKey

df = pd.read_csv("covid_munich_january_2023.csv")
ck = CellKey(df)
ck.add_row_key()
freq_table = ck.generate_frequency_table(["gender", "age_group"])
ck.generate_perturbation_table()
result = ck.apply_method(freq_table)

About

Python based solution for the CellKey method

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages