title: Split data by corresponding date period list of string
body: <p>I have a few problems when grouping by interval in date period list of string</p>
  <pre><code>date_period_list = ['2022/07/28 - 2022/07/29','2022/07/31 - 2022/08/01']
  my_list = [{'date': '2022/07/31', 'value': 40}, 
             {'date': '2022/07/31', 'value': 30}, 
             {'date': '2022/07/29', 'value': 50}, 
             {'date': '2022/08/01', 'value': 20}]
  </code></pre>
  <p>My expected result:</p>
  <pre><code>my_list = [50, 90]
  # Only SUM &quot;value&quot; by &quot;date&quot; date is in the corresponding range in date_period_list 
  # ['2022/07/28 - 2022/07/29' =&gt; 50, '2022/07/31 - 2022/08/01' =&gt; 40+30+20=90]
  </code></pre>
  <p>Currently, I don't know how to do it and I want to ask for a way to get it right?</p>