Statistical Data Transformation In Python