Normalization Formula In Python