It is like I have a data frame. I groupby the ['ID', 'disease'] , in disease column there are more than 2 diseases I want to know how to get the frequency of combination of disease.
id disease
1 Aids
ADHD
2 Something
Aids
For example how do I know how many ID has disease combination of Aids and ADHD
I am expecting like getting a new column to have the frequency on.