title: How to make a list of the lowest number among each month in .csv without python module?
body: <p>I am trying to list out the minimal number of ticket sold sorting by the month.</p>
  <pre><code>csv_file = open(csvfile,&quot;r&quot;)
      
  date_and_ticket = []
  for data in csv_file:
      data = data.replace('\n','').split(',')
      date_and_ticket.append(data[0:2])
              
  print(date_and_ticket)
  </code></pre>
  <p>From here, I am able to sort out the result like this:</p>
  <pre><code>[['16/3/20', '9'], ['17/3/20', '4'], ['18/4/20', '4'], ['19/1/20', '5'], ['17/6/20', '89'], ['18/6/20', '104'], ['19/6/20', '128'], ['20/1/20', '79']]
  </code></pre>
  <p>However, I would like to sort the data according to their months in chronological order and add the value zero if the month is not in the list.</p>
  <p>This is what I hope to do:</p>
  <pre><code>[5,0,4,4,0,89,0,0,0,0,0,0]
  </code></pre>
  <p>and here is the small portion of the .csv
  <a href="https://drive.google.com/file/d/1aqMwZcSzbY8WpeyTzXP76Sl46acO23bI/view?usp=sharing" rel="nofollow noreferrer">https://drive.google.com/file/d/1aqMwZcSzbY8WpeyTzXP76Sl46acO23bI/view?usp=sharing</a></p>
  <p>Any advice would be greatly appreciated thank you! :)</p>