title: Iterate through defined Datetime index range in Pandas Dataframe
body: <p>I can see from <a href="https://stackoverflow.com/questions/50309609/iterating-over-a-list-of-dates-from-datetime-index">here</a> how to iterate through a list of dates from a datetime index. However, I would like to define the range of dates using:</p>
  <pre><code>my_df['Some_Column'].first_valid_index()
  </code></pre>
  <p>and</p>
  <pre><code>my_df['Some_Column'].last_valid_index()
  </code></pre>
  <p>My attempt looks like this:</p>
  <pre><code>for today_index, values  in range(my_df['Some_Column'].first_valid_index() ,my_df['Some_Column'].last_valid_index()):
      print(today_index)
  </code></pre>
  <p>However I get the following error:</p>
  <pre><code>TypeError: 'Timestamp' object cannot be interpreted as an integer
  </code></pre>
  <p>How do I inform the loop to restrict to those specific dates?</p>