In python pandas, there is a Series/dataframe column of str values to combine into one long string:
df = pd.DataFrame({\'text\' : pd.Series([\'Hello\', \'wor
You can join a string on the series directly:
join
In [3]: ' '.join(df['text']) Out[3]: 'Hello world !'
Apart from join, you could also use pandas string method .str.cat
.str.cat
In [171]: df.text.str.cat(sep=' ') Out[171]: 'Hello world !'
However, join() is much faster.
join()