title: list indices (DateTimeIndex) must be integers or slices, not str
body: <p>I have the following <code>DateTimeIndex</code></p>
  <pre><code>DatetimeIndex(['2022-08-19', '2023-02-19', '2023-08-19', '2024-02-19',
                 '2024-08-19', '2025-02-19', '2025-08-19', '2026-02-19',
                 '2026-08-19', '2027-02-19', '2027-08-19', '2028-02-19',
                 '2028-08-19', '2029-02-19', '2029-08-19', '2030-02-19',
                 '2030-08-19', '2031-02-19', '2031-08-19', '2032-02-19',
                 '2032-08-19', '2033-02-19', '2033-08-19', '2034-02-19',
                 '2034-08-19', '2035-02-19', '2035-08-19', '2036-02-19',
                 '2036-08-19', '2037-02-19', '2037-08-19', '2038-02-19',
                 '2038-08-19', '2039-02-19', '2039-08-19', '2040-02-19',
                 '2040-08-19', '2041-02-19', '2041-08-19', '2042-02-19',
                 '2042-08-19', '2043-02-19', '2043-08-19', '2044-02-19',
                 '2044-08-19', '2045-02-19', '2045-08-19', '2046-02-19',
                 '2046-08-19', '2047-02-19', '2047-08-19', '2048-02-19',
                 '2048-08-19', '2049-02-19', '2049-08-19', '2050-02-19',
                 '2050-08-19', '2051-02-19', '2051-08-19', '2052-02-19'],
                dtype='datetime64[ns]', freq='&lt;DateOffset: months=6&gt;')
  </code></pre>
  <p>Given by :</p>
  <pre><code>dates = pd.date_range(&quot;2022-08-19&quot;, &quot;2052-02-19&quot;, freq=pd.DateOffset(months=6))
  </code></pre>
  <p>The Idea was to add it in a new DataFrame DF :</p>
  <pre><code>DF=[]
  DF['DateCol']=dates
  </code></pre>
  <p>But it does throw the following error :</p>
  <pre><code>TypeError: list indices must be integers or slices, not str
  </code></pre>
  <p>what am I doing wrong ?</p>
  <p>Note that I also tried DF.insert</p>