def _can_reindex(self, indexer):
        """
        *this is an internal non-public method*

        Check if we are allowing reindexing with this particular indexer

        Parameters
        ----------
        indexer : an integer indexer

        Raises
        ------
        ValueError if its a duplicate axis
        """

        # trying to reindex on an axis with duplicates
        if not self.is_unique or len(indexer):
            raise ValueError("cannot reindex from a duplicate axis")
dataset/ETHPy150Open pydata/pandas/pandas/indexes/base.py/Index._can_reindex/operator `and` -> `or`