我有一個csv文件,其中包含從2006年1月1日至2011年1月1日開始的6年數據,我需要按照6年的每個月分組數據。 這裏是我的csv文件概述:以6年爲單位的組數據
timestamp,heure,lat,lon,impact,type
2006-01-01 00:00:00,13:58:43,33.837,-9.205,10.3,1
2006-01-02 00:00:00,00:07:28,34.5293,-10.2384,17.7,1
2007-02-01 00:00:00,23:01:03,35.0617,-1.435,-17.1,2
2007-02-02 00:00:00,01:14:29,36.5685,0.9043,36.8,1
2008-01-01 00:00:00,05:03:51,34.1919,-12.5061,-48.9,1
2008-01-02 00:00:00,05:03:51,34.1919,-12.5061,-48.9,1
....
2011-12-31 00:00:00,05:03:51,34.1919,-12.5061,-48.9,1
和這裏的期望輸出:
month 01 10 (counts of the columns)
month 02 20
.....
month 12 30
任何想法?
所以,你希望12排,總結了所有Januarys,Februarys,... 12月份? – piRSquared
是的,這就是爲什麼我要 –