python pandas combine text from multiple rows to one row
<p>How can i get text belonging to the same key into one single row (and in the process deduping the key)?</p>

<p>For example, I retrieve only the dataframe rows where key = 'abc'. I get three cases where feedback has been provided. In order to do a wordcloud I need to get all the words into one list.</p>

<pre><code>df1 =  df['feedback'][df['key'] == 'abc']
print df1
</code></pre>

<p>output</p>

<pre><code>1             [10years+, experience, in, solicitors, pi]
345    [keen, to, help, where, they, can, , good, ser...
440       [professional, , knowlegeable, , competititve]
</code></pre>

<p>I need this to go into one row only and belonging to the key 'abc'</p>