@staticmethod
    def z_score(data2d, axis=1):
        if axis == 1:
            z_scored = data2d
        else:
            z_scored = data2d.T

        z_scored = (z_scored - z_scored.mean()) / z_scored.std()

        if axis == 1:
            return z_scored
        else:
            return z_scored.T
Standarize the mean and variance of the data axis
dataset/ETHPy150Open mwaskom/seaborn/seaborn/matrix.py/ClusterGrid.z_score