Skip to content

Commit

Permalink
setup and readme updated
Browse files Browse the repository at this point in the history
  • Loading branch information
ThaminduR committed Sep 1, 2020
1 parent 7afb68c commit b8df7c8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,7 @@ ________________________________________________________________________________
* PySpark 2.4.5. You can easily install it with `pip install pyspark`
* PyArrow `pip install pyarrow`
* Pandas `pip intall pandas`
* kmodes `pip install kmodes`

### Clustering Based K Anonymity

Expand Down Expand Up @@ -580,7 +581,7 @@ Recommended small number of l to minimum the data loss. Default value is l = 2.
StructField("column4", StringType()),
])

l_df = Anonymizer.l_diverse(k_df,schema, QI, l=2)
l_df = Anonymizer.l_diverse(k_df,schema, QI,SA, l=2)
l_df.show()
```

Expand Down
14 changes: 13 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="spark_privacy_preserver", # Replace with your own username
version="0.2.1",
version="0.3.1",
author="thamindu",
author_email="[email protected]",
description="Anonymizing Library for Apache Spark",
Expand All @@ -19,4 +19,16 @@
"Operating System :: OS Independent",
],
python_requires='>=3.6',
install_requires=[
'pandas>=1.1',
'pyspark==2.4.5',
'pyarrow==0.17.1',
'diffprivlib==0.2.1',
'tabulate==0.8.7',
'mypy>=0.770',
'kmodes'
],
extras_requires={
'DPLib': ['notebook']
}
)

0 comments on commit b8df7c8

Please sign in to comment.