code: def reindex(self, kdims=[], force=False):
          
          if not isinstance(kdims, list):
              kdims = [kdims]
          kdims = [self.get_dimension(kd, strict=True) for kd in kdims]
          dropped = [kd for kd in self.kdims if kd not in kdims]
          if dropped:
              raise ValueError("DynamicMap does not allow dropping dimensions, "
                               "reindex may only be used to reorder dimensions.")
          return super(DynamicMap, self).reindex(kdims, force)
docs: Reorders key dimensions on DynamicMap
  
          Create a new object with a reordered set of key dimensions.
          Dropping dimensions is not allowed on a DynamicMap.
  
          Args:
              kdims: List of dimensions to reindex the mapping with
              force: Not applicable to a DynamicMap
  
          Returns:
              Reindexed DynamicMap