Compare a list with the rows in pandas using Cosine similarity and get the rank
问题 I have a Pandas Dataframe and a user input , i would require to compare the user input with each of the rows in the dataframe and get the Ranked list of rows in the dataframe based on Cosine Similarties. Department Country Age Grade Score Math India Young A 97 Math India Young B 86 Math India Young D 68 Science India Young A 92 Science India Young B 81 Science India Young C 76 Social India Young B 88 Social India Young D 62 Social India Young C 72 User input : Country Age Grade Score India