def _get_index(self, name):
        return self._get_indices([name])[0]
safe get index, translate keys for datelike to underlying repr
dataset/ETHPy150Open pydata/pandas/pandas/core/groupby.py/_GroupBy._get_index