Find the similarity between a string input and a string column of a Data Frame. : 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
    Animal                have an apple
    Fruit                 tiger safari
    Veg                   Vegetable Market
    Flower                Garden

Here  i have to create an user-defined function in Python which takes only strings(having count > 1) as input. Suppose input comes as `BOTH`, then it should throw a message `Error in Message` . 

If input comes as string (Count > 2) , i need to check the similarity of  that string  with each element of `Col-2`. After that have to find the most similar one with respective `Col-1` value.

Expected Output :

Suppose input string is `Gardening Hobby`,

    I/P	              O/P
    Gardening Hobby	  Garden(60),Flower
