Statistical Data Transformation In Python Mean