I want to use the UpSetPlot given the actual sets I have, but I cannot find any example to use it this way. The standard example is this:
from upsetplot import generate_counts, plot
example = generate_counts()
plot(example, orientation='vertical')
where generated example
is a Series
looking like below.
cat0 cat1 cat2
False False False 56
True 283
True False 1279
True 5882
True False False 24
True 90
True False 429
True 1957
Name: value, dtype: int64
Is there a way to automatically generate this kind of count structure from the actual elements in the categories cat0
, cat1
, and cat2
?