I have a DataFrame with multiple rows. Is there any way in which they can be combined to form one string?
For example:
words 0 I, will, hereby 1
You can use str.cat to join the strings in each row. For a Series or column s, write:
str.cat
s
>>> s.str.cat(sep=', ') 'I, will, hereby, am, gonna, going, far, to, do, this'