I created nested dictionary to keep multiple values for each combination, example rows in the dictionary is as follows:-
dict = {\'A\': {B: array([1,2,3,4,5,6,7,8,9