title: Bind values of panda data.frame
body: <p>I am looking for a way to add rows from a subset together in a new variable.</p>
  
  <p>Let us say we have the following dataset</p>
  
  <pre><code>df = pd.DataFrame(columns=('Body', 'ticketID'))
  df2 = pd.DataFrame([["test1", 1], ["test2",1], ["test3",2],  ["test4",2]], columns=('Body', 'ticketID'))
  df = df.append(df2)
  </code></pre>
  
  <p>And I create unique data.frames "df_temp" using the unique values of ticketID</p>
  
  <pre><code>uniqueIDs = df.ticketID.unique()
  for u in uniqueIDs:
   df_temp = df2.loc[df['ticketID'] == u]
  </code></pre>
  
  <p>Now I would like to create one extra step that binds the body values of the seperate data.frame. So in case of the ticketID == 1 case -> "test1 test2" and in case of the ticketID == 2 case "test3 test4".</p>
  
  <p>Any thoughts on how I can achieve this using the example above</p>