def get_taxonomy_by_id(self, ids: Optional[AnyGenericIdentifier]=None) -> pd.DataFrame:
    'Get taxonomy :class:`~pandas.DataFrame` by feature `ids`.\n\n        Parameters\n        ----------\n        ids\n            Either feature indices or None for all.\n\n        Returns\n        -------\n            class:`pandas.DataFrame` with taxonomy data\n        '
    if (ids is None):
        target_ids = self.xrid
    else:
        target_ids = np.asarray(ids)
    if (self.xrid.isin(target_ids).sum() <= len(target_ids)):
        return self.__internal_taxonomy.loc[(target_ids, self.__avail_ranks)]
    else:
        raise ValueError('Invalid feature ids are provided.')
Get taxonomy :class:`~pandas.DataFrame` by feature `ids`.

Parameters
----------
ids
    Either feature indices or None for all.

Returns
-------
    class:`pandas.DataFrame` with taxonomy data
def get_taxonomy_by_id(self, ids: Optional[AnyGenericIdentifier]=None) -> pd.DataFrame:
    'Get taxonomy :class:`~pandas.DataFrame` by feature `ids`.\n\n        Parameters\n        ----------\n        ids\n            Either feature indices or None for all.\n\n        Returns\n        -------\n            class:`pandas.DataFrame` with taxonomy data\n        '
    if (ids is None):
        target_ids = self.xrid
    else:
        target_ids = np.asarray(ids)
    if (self.xrid.isin(target_ids).sum() <= len(target_ids)):
        return self.__internal_taxonomy.loc[(target_ids, self.__avail_ranks)]
    else:
        raise ValueError('Invalid feature ids are provided.')