def get_value(self, series, key):

        # if we have something that is Index-like, then
        # use this, e.g. DatetimeIndex
        s = getattr(series, '_values', None)
        if isinstance(s, Index) and lib.isscalar(key):
            try:
                return s[key]
            except (IndexError, ValueError):

                # invalid type as an indexer
                pass

        s = _values_from_object(series)
        k = _values_from_object(key)

        k = self._convert_scalar_indexer(k, kind='getitem')
        try:
            return self._engine.get_value(s, k,
                                          tz=getattr(series.dtype, 'tz', None))
        except KeyError as e1:
            if len(self) > 0 and self.inferred_type in ['integer', 'boolean']:
                raise

            try:
                return tslib.get_value_box(s, key)
            except IndexError:
                raise
            except TypeError:
                # generator/iterator-like
                if is_iterator(key):
                    raise InvalidIndexError(key)
                else:
                    raise e1
            except Exception:  # pragma: no cover
                raise e1
        except TypeError:
            # python 3
            if lib.isscalar(key):  # pragma: no cover
                raise IndexError(key)
            raise InvalidIndexError(key)
Delete the keyed message and return it, or default.
dataset/ETHPy150Open pydata/pandas/pandas/indexes/base.py/Index.get_value--crossover with--dataset/ETHPy150Open babble/babble/include/jython/Lib/mailbox.py/Mailbox.pop