docstr: Returns the data of a Dataset as a dataframe avoiding copying
  if it already a dataframe type.
docstr_tok: ["Returns","the","data","of","a","Dataset","as","a","dataframe","avoiding","copying","if","it","already","a","dataframe","type","."]
code: def as_dframe(cls, dataset):
      """
      Returns the data of a Dataset as a dataframe avoiding copying
      if it already a dataframe type.
      """
      return dataset.dframe()
  
imports: import sys
  import warnings
  import numpy
  import param
  from ..None import util
  from ..element import Element
  from ..ndmapping import NdMapping
  from .util import finite_range
label_desc: Use image node_id 30 for calling the Interface obj's underlying member method code with example usage: obj.as_dframe(cls, dataset) and returns: dataset