Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Classe « CategoricalIndex »

Méthode pandas.CategoricalIndex.get_indexer_non_unique

Signature de la méthode get_indexer_non_unique

def get_indexer_non_unique(self, target) 

Description

get_indexer_non_unique.__doc__

Compute indexer and mask for new index given the current index. The
indexer should be then used as an input to ndarray.take to align the
current data to the new index.

Parameters
----------
target : CategoricalIndex

Returns
-------
indexer : ndarray of int
    Integers from 0 to n - 1 indicating that the index at these
    positions matches the corresponding target values. Missing values
    in the target are marked by -1.
missing : ndarray of int
    An indexer into the target of the values not found.
    These correspond to the -1 in the indexer array.