def format_data(self, data, pivot_kws, z_score=None,
                    standard_scale=None):

        # Either the data is already in 2d matrix format, or need to do a pivot
        if pivot_kws is not None:
            data2d = data.pivot(**pivot_kws)
        else:
            data2d = data

        if z_score is not None and standard_scale is not None:
            raise ValueError(
                'Cannot perform both z-scoring and standard-scaling on data')

        if z_score is not None:
            data2d = self.z_score(data2d, z_score)
        if standard_scale is not None:
            data2d = self.standard_scale(data2d, standard_scale)
        return data2d
A :class:`.StructuredTextList` object, containing descriptions about
dataset/ETHPy150Open mwaskom/seaborn/seaborn/matrix.py/ClusterGrid.format_data--crossover with--dataset/ETHPy150Open STIXProject/python-stix/stix/report/header.py/Header.descriptions