title: After using groupby, how do I get all values from multiple rows into a list?
body: <p>I have a DataFrame with names of people, dates, start/end times, and durations.  I want to group by name and date, sum the Duration, and also "sum" the Start and End values by throwing them into a list.</p>
  
  <pre class="lang-py prettyprint-override"><code>df = pd.DataFrame([
      ['Bar', '2/18/2019', '7AM', '9AM',120],
      ['Bar', '2/18/2019', '9AM', '11AM',120],
      ['Foo', '2/18/2019', '10AM', '12PM',120],
      ],
      columns=['Name', 'Date', 'Start','End','Duration'])
  </code></pre>
  
  <p>Looking to turn this...
  <br>
  <img src="https://i.imgur.com/WLqa3mL.png" title="source: imgur.com" /></p>
  
  <p>Into this...
  <br>
  <img src="https://i.imgur.com/sW9Cg5x.png" title="source: imgur.com" /></p>
  
  <p>Where I am using groupby to get the sum of Duration for Name and Date...</p>
  
  <p><code>df.groupby(['Name','Date'])['Duration'].sum().reset_index()</code></p>
  
  <p>...but having a heck of a time trying to figure out how to throw all of those times into a list.  I've tried .apply and building a dictionary where the key is Name+date and the value is the list, but to no avail.</p>
  
  <p>Any hints or gentle nudges in the right direction?</p>