title: create dataframe as week and their weekly sum from dictionary of datetime and int
body: <p>I have datetime and int values dictionary like below.</p>
  <pre><code>details = {
      datetime.datetime.strptime(&quot;04-01-2021&quot;, &quot;%d-%m-%Y&quot;) : 15,
      datetime.datetime.strptime(&quot;05-01-2021&quot;, &quot;%d-%m-%Y&quot;) : 25,
      datetime.datetime.strptime(&quot;10-10-2021&quot;, &quot;%d-%m-%Y&quot;) : 10,
      datetime.datetime.strptime(&quot;11-10-2021&quot;, &quot;%d-%m-%Y&quot;) : 11.5,
      datetime.datetime.strptime(&quot;10-11-2021&quot;, &quot;%d-%m-%Y&quot;) : 20,
      datetime.datetime.strptime(&quot;12-11-2021&quot;, &quot;%d-%m-%Y&quot;) : 23.19,
  }
  </code></pre>
  <p>I would like convert this weekly using pandas dataframes like below. Week starts from Monday and ends with Sunday. We need to accumulate all datetimes within the week and need to put sum in that months week cell.</p>
  <p><a href="https://i.stack.imgur.com/5tKtU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5tKtU.png" alt="enter image description here" /></a></p>