human
Merging data frame columns of strings into one single column in Pandas
assistant
Here is some code to merge all columns in dataframe `df` into one column

df.apply(' '.join, axis=0)

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.