change range to 0 to 0 to 1 python

Solutions on MaxInterview for change range to 0 to 0 to 1 python by the best coders in the world

showing results for - "change range to 0 to 0 to 1 python"
Maria
03 Oct 2016
1import numpy as np
2
3def NormalizeData(data):
4    return (data - np.min(data)) / (np.max(data) - np.min(data))
5