def METHOD_NAME(self):
    """Return this dataset as a 2D matrix."""
    for row in self.data:
        for itt, col in enumerate(row):
            if col:
                row[itt] = sum(col) / float(len(col))
            else:
                row[itt] = 0
    return self.data