https://github.com/ttitcombe/privacypanda
Anonymize your Pandas data. Preserve privacy.
https://github.com/ttitcombe/privacypanda
anonymization data-anonymization data-science pandas privacy privacy-preserving privacy-protection privacy-tools
Last synced: 8 months ago
JSON representation
Anonymize your Pandas data. Preserve privacy.
- Host: GitHub
- URL: https://github.com/ttitcombe/privacypanda
- Owner: TTitcombe
- License: apache-2.0
- Created: 2020-02-24T16:45:35.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-14T11:42:17.000Z (over 5 years ago)
- Last Synced: 2024-09-21T09:11:02.771Z (about 1 year ago)
- Topics: anonymization, data-anonymization, data-science, pandas, privacy, privacy-preserving, privacy-protection, privacy-tools
- Language: Python
- Homepage:
- Size: 77.1 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README

[][binder]
[](./LICENSE)

![]()
# PrivacyPanda
**PrivacyPanda** is a package for detecting and removing personal, private data (such as names and addresses) from [**pandas**][pandas] dataframes.## Why privacypanda
The volume of available information - personal, private information - of each and every one of us is vast and growing. This information can be used to build such a clear picture of who you are that bad actors can know you better than your partner does. In the wrong hands, this data can influence the way you shop, the way you vote, the way you think...A necessary step to protect ourselves is to anonymize data - to strip it of any identifying features like our names or addresses. While many of the people handling private data are trustworthy, honest and ethical, we can't always trust that they will successfully scrub a dataset of any information which may be used against us.
`privacypanda` aims to make data anonymization a little bit easier by providing tools to detect identifying features in [`pandas`][pandas] dataframes and expunge them.
## How to install
`privacypanda` requires python of `3.7` or above and `pandas >= 1.0.0`.`privacypanda` can be installed via pip with
```
pip install privacypanda
```Alternatively, to install from source:
1. clone the repository
2. navigate to the project folder
3. run `pip install -e .`## How to use
See the [example notebooks](./examples/) for more extensive usage.
[Click this link][binder] to run the example notebooks online.With `privacypanda` you can audit the privacy of your dataframe:
```python
import pandas as pd
import privacypanda as ppdata = pd.DataFrame(
{
"privateData":
[
"an@email.com",
"AB1 1AB",
"Some other data",
],
"nonPrivateData":
[
1,
2,
3,
],
}
)print(pp.report_privacy(data))
```This prints the names of any colums in the data which break privacy,
and the ways in which privacy is broken.```python
>>> "privateData": ["address", "email"]
```## Contributing
All contributions are important and welcomed.
Please see the [contributing guide](./CONTRIBUTING.md) for more information.## License
The **PrivacyPanda** project is licensed with Apache 2.0.
Please refer to the [license](./LICENSE) for more information.[binder]: https://mybinder.org/v2/gh/TTitcombe/PrivacyPanda/master
[pandas]: https://pandas.pydata.org/