I have two lists of the same length of 0s and 1s: e.g. a = [0,0,0,1,1,0,1], b = [0,1,0,1,0,1,1] and want to get a Venn diagram which has the intersection as the sum of values which are both 1, so in this case 2 values would be 1 in the same position. How can I achieve this?
Thanks in advance!
I tried something like venn2(subsets = df['a']==1, df['b']==1, set_labels = ('a', 'b'), alpha = 0.5)
but it didn't work.
You need to implement the logic to count the elements in each subset and pass the result in a tuple as the
subsets
parameter.