以下のデータを考えると:
Sum amount_net amount_gross symbol Date_Time
ts
7/29/2013 2:17 -68 755,101 -755,101 A 7/29/2013 2:17
7/29/2013 2:17 -21 251,945 -251,945 B 7/29/2013 2:17
7/29/2013 2:16 -1 2,200 -2,200 C 7/29/2013 2:16
7/29/2013 2:17 -5 11,000 -11,000 C 7/29/2013 2:17
7/29/2013 2:08 -1 5,384 -5,384 D 7/29/2013 2:08
7/29/2013 2:09 -3 16,151 -16,151 D 7/29/2013 2:09
7/29/2013 2:13 1 5,384 5,384 D 7/29/2013 2:13
7/29/2013 2:02 20 70,000 70,000 F 7/29/2013 2:02
7/29/2013 2:03 22 77,000 77,000 F 7/29/2013 2:03
7/29/2013 2:04 18 63,000 63,000 F 7/29/2013 2:04
7/29/2013 2:05 15 52,500 52,500 F 7/29/2013 2:05
7/29/2013 2:08 15 52,500 52,500 F 7/29/2013 2:08
7/29/2013 2:09 8 28,000 28,000 F 7/29/2013 2:09
7/29/2013 2:10 22 77,000 77,000 F 7/29/2013 2:10
7/29/2013 2:11 22 77,000 77,000 F 7/29/2013 2:11
7/29/2013 2:12 12 42,000 42,000 F 7/29/2013 2:12
7/29/2013 2:13 5 17,500 17,500 F 7/29/2013 2:13
7/29/2013 2:14 30 105,000 105,000 F 7/29/2013 2:14
7/29/2013 2:15 35 122,500 122,500 F 7/29/2013 2:15
7/29/2013 2:16 35 122,500 122,500 F 7/29/2013 2:16
各シンボルについて、そのシンボルの最大時間で sum、amount_net、amount_gross を返したいと思います。つまり、私は取得したい:
symbol Time Sum amount_net amount_gross
A 7/29/2013 2:17 -68 755,101 -755,101
B 7/29/2013 2:17 -21 251,945 -251,945
C 7/29/2013 2:17 -5 11,000 -11,000
D 7/29/2013 2:13 1 5,384 5,384
F 7/29/2013 2:16 35 122,500 122,500