Вы можете просто использовать DataFrame.sum, указав правильную ось, и он объединит строки.
Пример данных
import pandas as pd
df = pd.DataFrame({'a': ['hello', 'goodbye'], '34234': ['goodbye', 'seven'],
'column2': ['foo-', 'bird'], 'column xx': ['bar', 'cat']})
# a 34234 column2 column xx
#0 hello goodbye foo- bar
#1 goodbye seven bird cat
columns = ['a', 'column2', 'column xx']
(df[columns] + ' ').sum(axis=1).str.strip() # strip removes the trailing space
Выходы:
0 hello foo- bar
1 goodbye bird cat