Fuzzy Match
One common use case to utilize the python tool for, is fuzzy matching. Fuzzy matching is a process that finds strings in a dataset that are approximately similar to a target string, even if they aren't an exact match, by using algorithms to calculate the degree of similarity.
Input, Output
A table from an Auditboard Analytics tool output with two columns able to be fuzzy matched
Your python altered data frames or charts with similarity score dictated by return
Example Use Cases
Matching address that may have been entered incorrectly or slightly different
Matching names they may have been entered incorrectly or slightly different
Assistance in reconciling data between different systems where exact matches aren't guaranteed
Example Input Table
Apple
grpe
Banana
appl
Orange
bnna
Grape
orng
Example Code
This example code creates a fuzzy match from a tool input and only returns those matches with a similarity score above .5 via def fuzzy_match(list1, list2, threshold=0.5):
. It matches the first two columns provided, so you will need to rearrange your data to be matched as the first two columns.
Example Output Table
Apple
appl
66.67
Orange
orng
60.00
Grape
grpe
66.67
Last updated
Was this helpful?