-2
我需要能夠讀取csv文件並每天總結幾列,然後使用解決方案生成新的csv文件。我是Python新手,我已經想出瞭如何閱讀csv,但現在我必須弄清楚如何基於日期/時間列對列進行求和。使用Python讀取CSV文件並從具有日期和時間的列中打印出唯一的日期
CSV:
tag,date,symbol,exch,volume,price,side,ind
1058,20140612 13:29:59.042,BRK/B,NQBX,1000,61.25,SELL_SHORT,A
1059,20140612 13:29:59.043,JNJ,NQBX,185,31.94,SELL_SHORT,A
1153,20140612 13:30:00.117,AAPL,NQBX,77,43.64,SELL,A
1201,20140612 13:30:00.190,WFC,NQBX,100,49.92,SELL,A
1720,20140612 13:30:04.003,JPM,NQBX,100,50.16,SELL,A
1738,20140613 13:30:04.254,PFE,NQBX,600,43.89,SELL_SHORT,A
108167,20140613 13:30:04.809,VZ,NSDQ,2000,61.23,SELL_SHORT,R
1799,20140613 13:30:05.252,MSFT,NQBX,11,43.76,BUY,A
1879,20140612 13:30:06.393,CVX,NQBX,40,70.58,BUY,A
1908,20140612 13:30:06.803,INTC,NQBX,100,56.52,SELL_SHORT,A
1989,201406117 13:30:08.003,GE,NQBX,100,50.14,SELL,A
2008,20140619 13:30:08.169,JNJ,NQBX,97,15.18,SELL,A
2021,20140619 13:30:08.393,PFE,NQBX,38,43.89,SELL_SHORT,A
2197,20140619 13:30:10.599,WFC,NQBX,100,30.34,BUY,A
2302,20140620 13:30:12.002,GE,NQBX,100,50.14,SELL,A
2368,20140620 13:30:12.931,INTC,NQBX,500,31.44,SELL,A
我需要總結每天的量柱,然後創建總結新的CSV。