I want to do the following merge (hard to describe in words): This are my Dataframes
df8=pd.DataFrame({\'names\':[[\'Hans\',\'Meier\'],[\'Debby\',\'Harry\',\'Pet
Here is one way
df9['text']=df9['text'].str[0] l=[df9.loc[x,'text'].tolist() for x in df8.names] Out[505]: [['hi im hans', 'hi im meier'], ['hi im debby', 'hi im harry', 'hi im peter']] df9['cont']=l