Question:
I am trying to find the number of unique values that cover 2 fields. So for example, a typical example would be last name and first name. I have a data frame.
When I do the following, I just get the number of unique fields for each column, in this case, Last and First. Not a composite.
Answer:
Groupby both columns first, and then usenunique
If you have better answer, please add a comment about this, thank you!