code: def rename_scalar(self, old_name, new_name, preference='cell'):
          
          _, field = get_scalar(self, old_name, preference=preference, info=True)
          if field == POINT_DATA_FIELD:
              self.point_arrays[new_name] = self.point_arrays.pop(old_name)
          elif field == CELL_DATA_FIELD:
              self.cell_arrays[new_name] = self.cell_arrays.pop(old_name)
          else:
              raise RuntimeError('Array not found.')
          if self.active_scalar_info[1] == old_name:
              self.set_active_scalar(new_name, preference=field)
docs: Changes array name by searching for the array then renaming it