Describe the bug
At species level, we get:

But at genus level, we get:

Expected behavior
We should have Staphylococcus, Streptococcus etc. at 100%.

Explanation
This is because in the code we do the mean of the prevalence of the species of the genus (prev_ser_taxa = self.prevalence_series.groupby(taxa_level).mean()) instead of doing the prevalence on the dataframe grouped by genus.
Describe the bug
At species level, we get:
But at genus level, we get:
Expected behavior
We should have Staphylococcus, Streptococcus etc. at 100%.
Explanation
This is because in the code we do the mean of the prevalence of the species of the genus (
prev_ser_taxa = self.prevalence_series.groupby(taxa_level).mean()) instead of doing the prevalence on the dataframe grouped by genus.