I have a Dataframe with 2 columns
col1 col2 1 cat the cat 2 dog a nice dog 3 horse horse is here I need to find the position of each string of col1 in col2.
Solution must be:
col1 col2 col3 1 cat the cat 4 2 dog a nice dog 7 3 horse horse is here 0 There must be a simple solution to do this without using painful loops, but i can't find it.