dataframe is like
1 2 4 ....n
0 2 0 ....n
1 0 4 ....n
0 0 4 ....n
now i want to count 1 from column 1, count 2 from column 2,count 4 from column 3 and so on.
but i also want to count few values by adding columns like
1+2 , 1+4 , 2+4 , 1+2+4
0+2 , 0+0 , 2+0 , 0+2+0
1+0 , 1+4 , 0+4 , 1+0+4
0+0 , 0+4 , 0+4 , 0+0+4
Count 3 count 5 count 6 count 7 from above columns respectively.
Sotr these values/number in list, array or dataframe like
Values/Number -- Frequency
1 , 2
2 , 2
3 , 1
4 , 3
5 , 2
6 , 1
7 , 1