title: Splitting YYYYMMDD format date into months?
body: <p>I have a file with about 200 lines of dates. Each of the dates is in YYYYMMDD format. How can I separate out each months data so I can get the averages of each month? </p>
  
  <p>This is the best I've been able to figure out how to do it</p>
  
  <pre><code>Dates = line.split()
  Year= Dates[0][0:4]
  Month = Dates[0][4:6]
  Date = Dates [0][6:8]
  </code></pre>