code: def as_dframe(cls, dataset):
          
          if issubclass(dataset.interface, PandasInterface):
              return dataset.data
          else:
              return dataset.dframe()
docs: Returns the data of a Dataset as a dataframe avoiding copying
          if it already a dataframe type.