def get_value(self, series, key):
try:<EOL><INDENT>k = com.values_from_object(key)<EOL>k = self._convert_scalar_indexer(k, kind='<STR_LIT>')<EOL>indexer = self.get_loc(k)<EOL>return series.iloc[indexer]<EOL><DEDENT>except (KeyError, TypeError):<EOL><INDENT>pass<EOL><DEDENT>return super().get_value(series, key)<EOL>
Fast lookup of value from 1-dimensional ndarray. Only use this if you
know what you're doing