I am trying to scale a pandas or numpy array from 0 to a unknown max value with the defined number replaced with 1.
One solution I tried is just dividing the defined number I want by the array.
test = df['Temp'] / 33
This method does not scale all the way from 0 and I'm stuck trying to figure out a better mathematical way of solving this.