title: From two dates and frequency get daterange list
body: <p>I have two dates:</p>
  
  <p>'1990-01-01'</p>
  
  <p>'2020-02-18'</p>
  
  <p>I would want to convert them in a date range list of as maximum, 25 years:</p>
  
  <pre><code>[ ['1990-01-01', '2015-01-01'], ['2015-01-01', '2020-02-18'] ]
  </code></pre>
  
  <p>Or as maximun, 5 years:</p>
  
  <pre><code>[ ['1990-01-01', 1995-01-01'], [1995-01-01', '2000-01-01'], ['2000-01-01', '2005-01-01'], ['2005-01-01', '2010-01-01'], ['2010-01-01', '2015-01-01'], ['2015-01-01', '2020-01-01'], ['2020-01-01', '2020-02-18'] ]
  </code></pre>
  
  <p>I tried with pandas.interval_range with no success.</p>