I have a dataframe in the following form:
group base height weight size
0 A 10 5 M
0 A 20 5 M
1 A 10 10 S
2 A 5 5 L
How can I get a matrix, which counts the similiar entries by group? The output looks like this:
compare base height weight size
0,1 3/3 2/3 2/3 2/3
0,2 3/3 0/3 3/3 2/3
1,2 2/2 0/2 0/2 0/2