def subset_on_taxonomy(dataframe, taxa_level, name):
    """
    Return only rows of the datframe where the value in column taxa_level
    matches the specified name.

    :param dataframe: Pandas DataFrame with columns like 'Kingdom',
    'Phylum', 'Class', ...
    :param taxa_level: a taxagenetic label such as "Genus" or "Order"
    :param name: taxa_level name to match
    :return: subset of Pandas DataFrame matching the selection
    """
    #print(dataframe.columns)
    return dataframe[dataframe[taxa_level] == name]