seatgeek / fuzzywuzzy

Fuzzy String Matching in Python
http://chairnerd.seatgeek.com/fuzzywuzzy-fuzzy-string-matching-in-python/
GNU General Public License v2.0
9.21k stars 874 forks source link

process.dedupe() using sets instead of lists & dict.keys() #255

Open UpwardTrajectory opened 4 years ago

UpwardTrajectory commented 4 years ago

Maybe no one asked for this, but I saw a very minor improvement. (This is my first ever contribution attempt to a stranger's library, I'm open to critiques re: my process.)

This is slightly more readable and doesn't use dict.keys() in order to get set functionality. Previously,

deduped = process.dedupe(contains_dupes)
type(deduped)

dict_keys

but now type(deduped) = list