Statistical Data Transformation Python Programming