def get_value(self, series, key):
if not is_scalar(key):<EOL><INDENT>raise InvalidIndexError<EOL><DEDENT>k = com.values_from_object(key)<EOL>loc = self.get_loc(k)<EOL>new_values = com.values_from_object(series)[loc]<EOL>return new_values<EOL>
we always want to get an index value, never a value