Is there a way to find the closest match to a string? The df has 2 independent columns. user_input is a column with 1000 non-emptyrows. Since there are only 20 possible_fruits, possible_fruits has 980 empty rows.
df
user_input possible_fruits
aapl apple
applee pear
aaaple banana
...
Expected Output
user_input closest_match_in_possible_fruits
aapl apple
applee apple
aaaple apple