I have the following dataset (see figure)

I need to extract all rows from the Results data frame such that Results['Class'] is in Results[Path_x']
(In the specific case, it should only return me the second-to-last line because Results['Class'] is totally contained in Results['Path_x'] in the penultimate case)
I tried the following line of code:
results=results[results['Class'].isin(results['Path_x'])]
However, that line always generates an empty data frame.