title: plotting the frequency of time in Python
body: <p>I have 180,000 lines in a csv file and the third column (Time) looks like this <code>2016-10-20 03:43:11+00:00</code> (Time is in UTC). So how can I plot a graph in Python that can show how many of these lines(tweets) happened in each 5 minutes interval of the 2 hour time frame across the entire csv file? For example, I am interested in knowing how many tweets have happened in each 5 minutes interval.</p>
  
  <p>Some sample lines from the CSV file looks like this:</p>
  
  <pre><code>Candidate,ID,Time,Username,Tweet
  Clinton,788948653016842240,2016-10-20 03:43:11+00:00,Tamayo_castle,Lorem ipsum dolor sit amet, consectetur adipiscing elit 
  Clinton,788948666501464064,2016-10-20 03:43:14+00:00,ThinkCenter1968,Maecenas congue, sem nec suscipit aliquam, lorem enim pl
  Clinton,788948673594097664,2016-10-20 03:43:16+00:00,21stCenRevolt,Curabitur nec condimentum lorem. Aliquam a dolor porta
  Both,788948662881751040,2016-10-20 03:43:13+00:00,mikeywan,Ut eu sagittis metus. Phasellus ut vulputate dui, nec malesuada 
  Both,788948675313696769,2016-10-20 03:43:16+00:00,erwoti,Fusce sit amet aliquet ipsum, quis placerat elit. 
  Clinton,788948671756955650,2016-10-20 03:43:15+00:00,isaac_urner,te nisi, vitae bibendum odio. Maecenas hen
  </code></pre>
  
  <p>Basically, I am not sure how to link the pd.date_range below to tweets_df so that it could show the frequency of tweets in 5 minutes intervals over a two hour period (say in histogram format or any other representative plot).</p>
  
  <pre><code>import pandas as pd
  import numpy as np
  import matplotlib.pyplot as plt
  
  tweets_df = pd.read_csv('valid_tweets.csv')
  print(tweets_df)
  pd.date_range('10/20/2016 1:55', '10/20/2016 3:55',
                freq='5 min', tz='UTC')
  </code></pre>