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