Find all individuals with the last_name “Groskopf”:
family = table.where(lambda r: r['last_name'] == 'Groskopf')
Fuzzy search by edit distance¶
For example, to find all names within 2 edits of “Groskopf”:
from Levenshtein import distance fuzzy_family = table.where(lambda r: distance(r['last_name'], 'Groskopf') <= 2)
These results will now include all those “Grosskopfs” and “Groskoffs” whose mail I am always getting.