Skip to main content

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 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.

Metadata

Release files for piflib 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for piflib 0.1.1
File Size Uploaded Provenance
piflib-0.1.1.tar.gz 9.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for piflib 0.1.1
File Interpreter ABI Platform
piflib-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 21.6 kB

Release files / piflib-0.1.1.tar.gz

Download URL piflib-0.1.1.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
40867d70a59db7c33f2e805217b1a0bfba904c4fc2511194c98edf499cfb9444
BLAKE2b-256 checksum
How to use checksums
054730da3f9b0dbcc7cde1d12c2342c7b1644b38f63881352dee9ae82bd941be
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / piflib-0.1.1-py3-none-any.whl

Download URL piflib-0.1.1-py3-none-any.whl
Size 12.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
51dc06c90a297a46d9659c566eb4b503dcc389ca28b1738217e074e79943557d
BLAKE2b-256 checksum
How to use checksums
4b9371fde83053ade119402263ee9961c6736c37bb45f92933e5ddf0f9c3aa95
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for piflib 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page