FDToolDF
This is fork of https://github.com/kristian10007/FDTool which is fork of https://github.com/USEPA/FDTool
This fork introduces:
- Functionality of using pandas and polars dataframes as inputs.
- Better logging.
- (Experiments planned) Multithreaded search optimization.
Usage
# in cli
!pip install fdtooldf
# in jupyter notebook
from fdtooldf.runner import run_fdtool
import seaborn as sns
df = sns.load_dataset("tips") # just to demonstrate
result = run_fdtool(df) # result have two elements - [str to print, real_containers]
print(result[0])
# >>> FD (functional dependancies):
# total_bill | day -> size
# total_bill | day -> time
# total_bill | size -> time
# total_bill | tip -> sex
# total_bill | tip -> size
# total_bill | tip -> time
# total_bill | smoker | size -> day
# total_bill | tip | day -> smoker
# total_bill | tip | smoker -> day
# total_bill | sex | smoker | day -> tip
# >>> EQ (equivalences):
# total_bill | smoker | size <-> total_bill | smoker | day
# total_bill | tip | day <-> total_bill | tip | smoker
# >>> CK (candidate keys):
# total_bill | tip | day
# total_bill | tip | smoker
# total_bill | sex | smoker | day
# total_bill | sex | smoker | size
result[1]
# {'FD': frozenset({(frozenset({'day', 'total_bill'}), 'time'),
# (frozenset({'size', 'total_bill'}), 'time'),
# (frozenset({'size', 'smoker', 'total_bill'}), 'day'),
# (frozenset({'tip', 'total_bill'}), 'size'),
# (frozenset({'day', 'total_bill'}), 'size'),
# (frozenset({'day', 'sex', 'smoker', 'total_bill'}), 'tip'),
# (frozenset({'tip', 'total_bill'}), 'sex'),
# (frozenset({'tip', 'total_bill'}), 'time'),
# (frozenset({'smoker', 'tip', 'total_bill'}), 'day'),
# (frozenset({'day', 'tip', 'total_bill'}), 'smoker')}),
# 'EQ': frozenset({frozenset({frozenset({'day', 'tip', 'total_bill'}),
# frozenset({'smoker', 'tip', 'total_bill'})}),
# frozenset({frozenset({'size', 'smoker', 'total_bill'}),
# frozenset({'day', 'smoker', 'total_bill'})})}),
# 'CK': frozenset({frozenset({'day', 'sex', 'smoker', 'total_bill'}),
# frozenset({'sex', 'size', 'smoker', 'total_bill'}),
# frozenset({'day', 'tip', 'total_bill'}),
# frozenset({'smoker', 'tip', 'total_bill'})})}
License
Notes: Module REPO/fdtooldf/modules/dbschema released under C-FSL license and copyright held by Elmar Stellnberger.
Metadata
Release files for fdtooldf 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fdtooldf-0.0.1.tar.gz | 13.1 kB | Without provenance | Details for fdtooldf-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fdtooldf-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for fdtooldf-0.0.1-py3-none-any.whl |
Total release size: 29.1 kB
Release files / fdtooldf-0.0.1.tar.gz
| Download URL | fdtooldf-0.0.1.tar.gz |
|---|---|
| Size | 13.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1fc4e3a5ccf91dfa31cff70ecb5e1140c4ef5e99683cc70878b267486db454a8
|
|
BLAKE2b-256 checksum How to use checksums |
f19aba1038029d7fba9823f708a99f23223782707f01c9b07b7f8c8dd750d0ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.20
|
Release files / fdtooldf-0.0.1-py3-none-any.whl
| Download URL | fdtooldf-0.0.1-py3-none-any.whl |
|---|---|
| Size | 16.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cc2f84f3779b199a0a80fef3da016826e62289d6a25c5e2437a9f43a42ce72ef
|
|
BLAKE2b-256 checksum How to use checksums |
bb8b6d5a873bfee72a9b54523bac9432a5199cf671f2053964ed6819769d899a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.20
|
Security for fdtooldf 0.0.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.