pandas-fuzz
Extension for pandas to use rapidfuzz for fuzzy matching.
Requirements
- Python 3.9 or later
- On Windows the Visual C++ 2019 redistributable is required
Installation
pip install pandas_fuzz
Usage
To register the extension make sure to import pandas_fuzz before using it`.
import pandas as pd
import pandas_fuzz
Alternatively, you can import pandas from pandas_fuzz directly.
from pandas_fuzz import pandas as pd
rapidfuzz.fuzz
pandas_fuzz integrates the following functions from rapidfuzz.fuzz into pandas. These functions are available in the fuzz namespace for both pandas.Series and pandas.DataFrame.
rapidfuzz.fuzz.ratiorapidfuzz.fuzz.partial_ratiorapidfuzz.fuzz.partial_ratio_alignmentrapidfuzz.fuzz.token_sort_ratiorapidfuzz.fuzz.token_set_ratiorapidfuzz.fuzz.token_ratiorapidfuzz.fuzz.partial_token_sort_ratiorapidfuzz.fuzz.partial_token_set_ratiorapidfuzz.fuzz.partial_token_ratiorapidfuzz.fuzz.WRatiorapidfuzz.fuzz.QRatio
pandas.Series
apply fuzz.ratio element wise to pd.Series.
>>> pd.Series(["this is a test", "this is a test!"]).fuzz.ratio("this is a test!")
0 96.551724
1 100.000000
dtype: float64
pandas.DataFrame
apply fuzz.ratio row wise to columns s1 and s2
>>> pd.DataFrame({
"s1": ["this is a test", "this is a test!"],
"s2": ["this is a test", "this is a test!"]
}).fuzz.ratio("s1", "s2")
0 100.0
1 100.0
dtype: float64
Dependencies
Metadata
Release files for pandas-fuzz 0.1.4
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 |
|---|---|---|---|---|
| pandas_fuzz-0.1.4.tar.gz | 6.8 kB | Without provenance | Details for pandas_fuzz-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pandas_fuzz-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for pandas_fuzz-0.1.4-py3-none-any.whl |
Total release size: 13.2 kB
Release files / pandas_fuzz-0.1.4.tar.gz
| Download URL | pandas_fuzz-0.1.4.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
081dd8b00bb735f6f09e1ac48e20fce1c7e3951043296786a7733c505cdc65ac
|
|
BLAKE2b-256 checksum How to use checksums |
0731dec799c353332627e8e224166b1965b1d26a21b31b3d9a351c7e8732f4d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.10.12 Linux/6.5.0-1025-azure
|
Release files / pandas_fuzz-0.1.4-py3-none-any.whl
| Download URL | pandas_fuzz-0.1.4-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c510b25c7cdff3958b0c3fa823f63408e3821f81779eebb497e7c7c4e27aaa59
|
|
BLAKE2b-256 checksum How to use checksums |
365023ab0e7f2b6b8f87d4a95ec8efe88f5c851999e68a77506035db89e01f51
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.10.12 Linux/6.5.0-1025-azure
|
Security for pandas-fuzz 0.1.4
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.