1. Condition:
according to whether the alias in the two lines intersect, and if so, Then merge
separated by-sharp sign, where: alias
2 in alias separated by-sharp sign, data
name alias
0 potato potato-sharp egg-sharp potato-sharp potato
1 potato potato-sharp potato
2 corn cob-sharp corn-sharp corn-sharp corn
3 potato son
4 cereal bag cereal-sharp corn
3
name alias
-sharp-sharp -sharp-sharp-sharp-sharp
-sharp -sharp-sharp-sharp
that is, 1,2,4 merging, 3,5 merging (merging with-sharp and de-repeating)
cols = ["name"," alias"]
data = [["potato", "Didou-sharp egg-sharp potato-sharp potato"],
["potato", "potato-sharp potato"],
["corn", "stick-sharp-sharp corn-sharp corn"],
["potato", "potato"],
["Baogu", "Baogu-sharp corn"]
frame = pd.DataFrame