I am new to programming.I have a pandas data frame in which two string columns are present.
Data frame is like below:
Col-1 Col-2
Update have a account
Account account summary
AccountDTH Cancel
Balance Balance Summary
Credit Card Update credit card
Here i need to check the similarity of Col-2 elements with each element of Col-1.
It Means i have to compare have a account
with all the elements of Col-1
.
Then find the top 3 similar one. Suppose the similarity scores are :Account(85),AccountDTH(80),Balance(60),Update(45),Credit Card(35)
.
Expected Output is:
Col-2 Output
have a account Account(85),AccountDTH(80),Balance(60)