Skip to main content

A library for computing the personal information factor (PIF)

Project description

piflib - computing personal information factors (PIF)

Documentation Status Tests Dependabot Status

Installation

This library requires Python3. To install, execute

pip install piflib

Usage

piflib expects the data as a Pandas DataFrame. Luckily, Pandas supports a wide range of input formats.

In this example, we have data in csv format.

import pandas as pd
import piflib

dataframe = pd.read_csv('datafile.csv')
cigs = piflib.compute_cigs(dataframe)
csfs = piflib.compute_csfs(dataframe)

The compute_cigs and compute_csfs functions return a Pandas DataFrame, containing the CIG and CSF values respectively. The CIG and CSF values appear in the same position as in the input data.

You can run and experiment with the tutorials online here: Binder

What does it do? How does it work?

The documentation can be found here.

Limitations

Piflib currently only supports discrete feature distributions.

Copyright

Copyright 2021 CSIRO's Data61

License

Piflib is released under the Apache-2 license. Unless required by applicable law or agreed to in writing, software distributed under this license is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the license for the specific language governing permissions and limitations.

Citing

Piflib is designed, developed and supported by CSIRO's Data61. If you use any part of this library in your research, please cite it using the following BibTex entry:

@misc{piflib,
  author = {CSIRO's Data61},
  title = {piflib - computing personal information factors},
  year = {2021},
  publisher = {GitHub},
  journal = {GitHub Repository},
  howpublished = {\url{https://github.com/PIFtools/piflib}},
}

Thank You

We want to thank Jakub Nabaglo and Joyce Yu for their contributions to this codebase.

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

piflib-0.1.1.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

piflib-0.1.1-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file piflib-0.1.1.tar.gz.

File metadata

  • Download URL: piflib-0.1.1.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for piflib-0.1.1.tar.gz
Algorithm Hash digest
SHA256 40867d70a59db7c33f2e805217b1a0bfba904c4fc2511194c98edf499cfb9444
MD5 e6f1f22d76f251fd1b41dff9c605b9ad
BLAKE2b-256 054730da3f9b0dbcc7cde1d12c2342c7b1644b38f63881352dee9ae82bd941be

See more details on using hashes here.

File details

Details for the file piflib-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: piflib-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 12.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for piflib-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 51dc06c90a297a46d9659c566eb4b503dcc389ca28b1738217e074e79943557d
MD5 e63190657e0d5dddf88300a67f36b06f
BLAKE2b-256 4b9371fde83053ade119402263ee9961c6736c37bb45f92933e5ddf0f9c3aa95

See more details on using hashes here.

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