def robust_scale(X, axis=0, with_centering=True, with_scaling=True, copy=True):
    s = RobustScaler(with_centering=with_centering, with_scaling=with_scaling,
                     copy=copy)
    if axis == 0:
        return s.fit_transform(X)
    else:
        return s.fit_transform(X.T).T
Standardize a dataset along any axis
dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/preprocessing/data.py/robust_scale