

def _can_reindex(self, indexer):
    '\n        *this is an internal non-public method*\n\n        Check if we are allowing reindexing with this particular indexer\n\n        Parameters\n        ----------\n        indexer : an integer indexer\n\n        Raises\n        ------\n        ValueError if its a duplicate axis\n        '
    if ((not indexer.is_unique) and len(indexer)):
        raise ValueError('cannot reindex from a duplicate axis')

dataset/ETHPy150Open pydata/pandas/pandas/indexes/base.py Index._can_reindex/VarMisuse@18/117 `self`->`indexer`