def dist(a, b):
    return sum((i-j)**2 for i, j in zip(a, b))
def dframe(cls, dataset, dimensions):
        if dimensions:
            return dataset.data[dimensions].to_pandas()
        else:
            return dataset.data.to_pandas()