Skip to main content

Fuzzy Comparison Utilities for DataFrame Columns

pip install fuzzypandaswuzzy

Tested against Windows 10 / Python 3.10 / Anaconda

This module provides a function to perform fuzzy comparison between two columns of a DataFrame using the RapidFuzz library.
It also extends the DataFrame class to add a method for fuzzy comparison between two columns.

Module dependencies:
	- pandas (pd)
	- numpy (np)
	- RapidFuzz (from rapidfuzz import process, fuzz)

Usage:
	import pandas as pd
	from rapidfuzz import fuzz
	from fuzzypandaswuzzy import pd_add_fuzzy_all
	pd_add_fuzzy_all()

	df = pd.read_csv(r"arcore_devicelist.csv")
	df2 = df.d_fuzzy2cols(scorer=fuzz.QRatio) # compares the first 2 columns

			   aa_value1   aa_match  aa_index_v2     aa_value2
	0            Mobicel  82.352943         1978    Mobicel_R1
	1            Hyundai  66.666664         5425         Cunda
	2               OPPO  66.666664        10102         P7PRO
	3            samsung  80.000000          745      samseong
	4               DEXP  66.666664         1174            EP
				  ...        ...          ...           ...
	22523          TECNO  76.923080          587      TECNO-i5
	22524          STYLO  83.333336         7272       STYLOF1
	22525  GarantiaMOVIL  52.631580        16788        armani
	22526  Cherry_Mobile  72.000000         3510  Cherry_Comet
	22527         SANSUI  53.333332         3465     ASUS_P00I


Note:
	The 'scorer' parameter in the fuzzy_compare function and d_fuzzy2cols method accepts a scoring function from the RapidFuzz library
	(e.g., fuzz.WRatio, fuzz.QRatio, etc.). If no scorer is specified, the default scorer used is fuzz.QRatio.

	For more information on the RapidFuzz library, visit https://github.com/maxbachmann/rapidfuzz.	

Metadata

Release files for fuzzypandaswuzzy 0.10

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

Source distribution (sdist)

Source distribution for fuzzypandaswuzzy 0.10
File Size Uploaded Provenance Actions
fuzzypandaswuzzy-0.10.tar.gz 21.8 kB Without provenance Details for fuzzypandaswuzzy-0.10.tar.gz

Built distribution (wheel)

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

Total release size: 44.4 kB

Release files / fuzzypandaswuzzy-0.10.tar.gz

Download URL fuzzypandaswuzzy-0.10.tar.gz
Size 21.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8515cb4b94a9b3db21ad0daa5b3790d19513abdf6151ecb70058ee24be782e1e
BLAKE2b-256 checksum
How to use checksums
f64390648bb007b6e80d153d0aa6ad5dd59ef69489df695d4519e540a41190b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Release files / fuzzypandaswuzzy-0.10-py3-none-any.whl

Download URL fuzzypandaswuzzy-0.10-py3-none-any.whl
Size 22.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2b32b821a4b715d55b8a0f43fc4b290cfb109a379d2aff38d62bb7c7de59b6c4
BLAKE2b-256 checksum
How to use checksums
ff0b14af787ab9f24cb1fe9912eb0e2d39fa908da779459b5e033ac981ad264b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Security for fuzzypandaswuzzy 0.10

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