def head(self, n=5, compute=True):
        """ First n items of the Index.

        Caveat, this only checks the first partition.
        """
        name = (n, self._name) % 'head-%d-%s'
        dsk = {(name, 0): (lambda x, n: x[:n], (self._name, 0), n)}

        result = self._constructor(merge(self.dask, dsk), name,
                                   self._pd, self.divisions[:2])

        if compute:
            result = result.compute()
        return result
dataset/ETHPy150Open dask/dask/dask/dataframe/core.py/Index.head/swapped operands of `%`