minute average csv files
<p>I have a big csv file with datetime and value recorded every 10 seconds. The csv file looks like this: </p>

<pre>
Datetime             Data  
2008-10-01 12:00:10, 34  
2008-10-01 12:00:20, 55  
2008-10-01 12:00:30, 46  
2008-10-01 12:00:40, 33  
2008-10-01 12:00:50, 55  
2008-10-01 12:01:00, 21  
2008-10-01 12:01:10, 2  
2008-10-01 12:01:20, 34  
2008-10-01 12:01:30, 521  
2008-10-01 12:01:40, 45  
2008-10-01 12:01:50, 32  
2008-10-01 12:02:00, 34  
</pre>

<p>I want to write a script that would calculate minute average and write it in a new csv file giving the following output:</p>

<pre>
Datetime             Data  
2008-10-01 12:00:00, 40.67  
2008-10-01 12:01:00, 111.33  
</pre>

<p>Any idea how this can be done and any suggestions about modules that I should look into or any examples.</p>
