[code_image....
it should print similar output in one col ]1>
from fuzzywuzzy import fuzz
from fuzzywuzzy import process
query = "Apple"
#set of DATA 25 records
choices = ["apil",
"apple",
"Apille",
"aple",
"apil",
"appple",
"Apple APPLE",
"Apil Orange",
"apples"
]
process.extract(query, choices)
#### Printing Accuracy Value
print ("List of ratios: ")
print (process.extract(query, choices), "\n")
#process.extractone(query, choices)
print ("\nBest among the above list ----->",process.extractOne(query, choices))
Output:
List of ratios:
[('apple', 100), ('appple', 91), ('apples', 91), ('Apple APPLE', 90), ('aple', 89)]
Best among the above list -----> ('apple', 100)