Plot gets jumbled up when a map is applied

I have some temperature decay data, and i’m trying to graph \frac{T-T_a}{T_0-T_a} vs t. So i applied a simple mapping: map(T->(T-Ta)/(df.temp_cº[1]-Ta), df.temp_cº), and it gave me this (with two different datasets):


First one is T vs t, second one is \frac{T-T_a}{T_0-T_a} vs t
What could have happened to the red data?

This does not seem to be a plotting issue, but rather an issue with the input data.
Could you provide a MWE?