I have a huge tab-delimited file such as the following :
3 Line1 0 100 A
4 Line1 100 200 A
7 Line1 200 300 B
2 Line1 300 400 B
12 Line1 400 500 C
10 Line1 500 600 C
For all the rows that have the letters (A, B, ect), I need to combine their values based upon the number in the first column. For example, what should be the result is below:
7 A
9 B
22 C
I am currently using Pandas + Python to figure this out.