Suppose I have a dataframe like so:
a b c d e f
1. 1 5 5 9 2 3
2. 4 7 3 1 4 6
3. 2 3 8 9 2 1
4. 7 3 1 4 7 11
5. 8 5 4 9 0 3
6. 7 8 4 7 2 1
I want to sum up the values for 4 elements of rows and columns for example. This would give me 1+5+4+7=17 and 5+9+3+1=18 , 2+3+4+6=15 , ...
output
a b c
1. 17 18 15
2. 18 22 21
3. 28 27 6
How do I do this in pandas?