class_docstr: StatisticsElement provides a baseclass for Element types that
  compute statistics based on the input data, usually a density.
  The value dimension of such elements are therefore usually virtual
  and not computed until the element is plotted.
class_docstr_tok: ["StatisticsElement","provides","a","baseclass","for","Element","types","that","compute","statistics","based","on","the","input","data",",","usually","a","density",".","The","value","dimension","of","such","elements","are","therefore","usually","virtual","and","not","computed","until","the","element","is","plotted","."]
docstr: 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
docstr_tok: ["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"]
code: def dframe(self, dimensions=None, multi_index=False):
      """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
      """
      if dimensions:
          dimensions = [
              self.get_dimension(d, strict=True) for d in dimensions
          ]
      else:
          dimensions = self.kdims
      vdims = [d for d in dimensions if d in self.vdims]
      if vdims:
          raise ValueError(
              "{} element does not hold data for value "
              "dimensions. Could not return data for {} "
              "dimension(s).".format(
                  type(self).__name__,
                  ", ".join([d.name for d in vdims]),
              )
          )
      return super().dframe(dimensions, False)
  
imports: import numpy
  import param
  from ..core.data import Dataset
  from ..core.dimension import Dimension, process_dimensions
  from ..core.element import Element, Element2D
  from ..core.util import get_param_values, unique_iterator
  from .selection import Selection1DExpr, Selection2DExpr
label_desc: Use image node_id 6 for calling the StatisticsElement obj's underlying member method code with example usage: obj.dframe(dimensions, multi_index) and returns: super