How can I use python, pandas/numpy/statsmodel to transform one line to another.
For example, I want to transform the orange line into the blue line. What polynomial fitting algorithm/package can I used to find the math operation can transform the orange line to blue line?