Kerry Back
from sklearn.preprocessing import QuantileTransformer qt = QuantileTransformer(output_distribution="normal") d = qt.fit_transform(df[["roeq", "ret"]]) d = pd.DataFrame(d, columns=["roeq", "ret"]) px.scatter_matrix(d)