Let's say I have a series:
A a 1
b 1
B c 5
d 8
e 5
where the first two columns together are the hierarchical index. I want to find how many unique values ββfor an index level=0
, for example, this output should be A 1; B 2
. How can this be done easily? Thank!
source
to share