<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def scale_to_zero_one(x):
 """Take some 1d data and scale it so that min matches 0 and max 1. """

    xscaled = x - np.min(x)
    xscaled /= np.max(xscaled)
    return xscaled