title: How can I group a set of days into weeks with the date as the name of the row?
body: <p>In a pandas DataFrame, I have a table of dates. They range from January 5th 2019 to today and there is a date for each consecutive day. I would like to group these into weeks, from the previous Friday to Friday and then have the name of that grouped week be the date of that Friday.</p>
  <p>For example:</p>
  <pre><code>2019-01-08
  2019-01-09
  2019-01-10
  2019-01-11
  2019-01-12
  2019-01-13
  2019-01-14
  2019-01-15
  </code></pre>
  <p>get grouped up as week of 2019-01-15</p>
  <p><a href="https://i.stack.imgur.com/ChnHy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ChnHy.png" alt="image" /></a></p>