code: def dframe(self, dimensions=None, multi_index=False):
          
          if dimensions is None:
              dimensions = [d.name for d in self.dimensions()]
          else:
              dimensions = [self.get_dimension(d, strict=True).name for d in dimensions]
          df = self.interface.dframe(self, dimensions)
          if multi_index:
              df = df.set_index([d for d in dimensions if d in self.kdims])
          return df
docs: Convert dimension values to DataFrame.
  
          Returns a pandas dataframe of columns along each dimension,
          either completely flat or indexed by key dimensions.
  
          Args:
              dimensions: Dimensions to return as columns
              multi_index: Convert key dimensions to (multi-)index
  
          Returns:
              DataFrame of columns corresponding to each dimension