ZenCity interview question

Python question - understanding a given piece of code that normalizes data.