change_unit() is written very inefficient. Takes very long for changing the units of complete data set.