My dataframe looks like this:
ID | value 1 | value 2 | value 3 | value 4
1 | M | D | F | A
2 | F | M | G | B
3 | M | D | F | A
4 | L | D | E | B
I want to get something like this.
value 1 | value 2 | value 3 | value 4| Number of combinations
M | D | F | A | 2
F | M | G | B | 1
L | D | E | B | 1
e.g. to count the number of unique combinations of the columns value 1 - value 4.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…