title: How to calculate the hourly average of my data?
body: <p>I have the data from several sensors stored in a CSV file.</p>
  
  <p>The time resolution is one minute. </p>
  
  <p>The daily average for each sensor was easily calculated. </p>
  
  <p>I need to calculate the hourly average of the data. </p>
  
  <p><strong>CSV data set format:</strong></p>
  
  <pre><code>5/27/2016 0:00:00 Temperature 39 25
  5/27/2016 0:00:00 Pressure    12 39
  5/27/2016 0:00:00 Humidity    19 79
  .
  .
  .
  5/27/2016 0:01:00 Temperature 39 25
  </code></pre>
  
  <ul>
  <li>First is date, </li>
  <li>second is time, </li>
  <li>third is parameter name, </li>
  <li>fourth is parameter code, and </li>
  <li>last one is value.</li>
  </ul>
  
  <p><strong>Relevant part of my code:</strong> </p>
  
  <pre><code>import pandas as pd
  import numpy as np
  
  df = pd.read_csv('2016-05-27.csv')
  
  Count_Row=df.shape[0] #gives number of row count
  
  print("The number of rows is", Count_Row)
  
  Parameter_code = 11201
  timestamp= []
  Par_value = []
  
  n = 0
  for rown in range(0,Count_Row):
     if df.iloc[rown,3] == Parameter_code:
         temp = df.iloc[rown, 4]
         if temp != 'nan':
             Par_value.append(float (temp))
             timestamp.append(df.iloc[rown, 1])
             n += 1
  
  print("total sapmles", n) 
  
  print (timestamp)
  daily_avg = np.average(Par_value)        
  print("The daily average ", daily_avg)
  </code></pre>
  
  <p><strong>Question:</strong> Is there any method to this hourly averaging?</p>