''' 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.
count 1 from column a, 2 from column b, 3 from column a+b, 4 from column c, 5 from column a+c, 6 from column b+c, 7 from column a+b+c. like this.
Store all these values/number in list, array or dataframe like
Values/Number , Title , Frequency
1 , a , 2
2 , b , 2
3 , a+b , 1
4 , c , 3
5 , a+c , 2
6 , b+c , 1
7 , a+b+c , 1
'''