drop_features_without_ranks

RepTaxonomy.drop_features_without_ranks(ranks, any=False, **kwargs)[source]

Remove features that do not contain ranks

Parameters
  • ranks (Sequence[str]) – Ranks to look for

  • any (bool) – If True removes feature with single occurrence of missing rank. If False all ranks must be missing.

  • kwargs (Any) – Compatibility

Return type

Optional[Union[Sequence[Union[str, int]], numpy.ndarray, pandas.core.indexes.base.Index, str, int]]