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