I have a dictionary as follows:
dictA = { ('unit1','test1') : 'alpha' , ('unit1','test2') : 'beta', ('unit2','test1') : 'alpha', ('unit2','test2') : 'gamma' , ('unit3','test1') : 'delta' , ('unit3','test2') : 'gamma' }
How can I count the number of repeating values ββfor each test, regardless of units?
i.e.
in 'test1' there is 2x 'alpha', 1x 'delta'
in 'test2' there is 1x 'beta', 2x 'gamma'
Any inputs?
Thank you very much.
source share