def mode(self):

        import pandas.hashtable as htable
        good = self._codes != -1
        values = sorted(htable.mode_int64(_ensure_int64(self._codes[good])))
        result = Categorical(values=values, categories=self.categories,
                             ordered=self.ordered, fastpath=True)
        return result
Returns the mode(s) of the Categorical.
dataset/ETHPy150Open pydata/pandas/pandas/core/categorical.py/Categorical.mode