I understand the counter function counts the frequency of every element in a list. But I would like it to include the frequency from given elements even the element doesn't appear in the list.
for example:
A list of expected elements are given as:
expected_element = [1,2,3,4,5,6,7]
for the datasets a,b:
a = [1,1,1,1,6,6,6,3,3,4,5,5]
b = [2,2,7,1,7,5,3,5,5]
and what I want is to count frequency of expected_element in a and b:
for a:
keys() = [1,2,3,4,5,6,7]
values() = [4,0,2,1,2,3,0]
for b:
keys() = [1,2,3,4,5,6,7]
values() = [1,2,1,0,3,0,2]