normalization of categorical variable normalization of categorical variable python-3.x python-3.x

normalization of categorical variable


So I think you are mixing up normalization with standardization.

Normalization:

rescales your data into a range of [0;1]

Standardization:

rescales your data to have a mean of 0 and a standard deviation of 1.

Back to your question:

For your gender column your points are already ranging between 0 and 1. Therefore your data is already "normalized". So your question should be if you can standarize your data and the answer is: yes you could, but it doesn't really make sense. This question was already discussed here: Should you ever standardise binary variables?