You can do it with list comprehension
and zip
function:
df['contains']=[i in j for i,j in zip(df['name_convert'],df['name'])]
: df
Out[10]:
no. name name_convert contains
0 0 applepie apple True
1 1 applepie strawberry False
2 2 bananashake banana True
3 3 bananashake banana True
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…