1
$\begingroup$

Suppose, I have a data set:

ix    m_t1   m_t2
1     42     84
2     12     12
3     100    50

then, we can calculate the difference between m_t1 and m_t2 in %

like

diff
100
0
-50

I would like to apply this difference on m_t2 to get m_t3_predicted

m_t3_predicted
168
12
25

https://stackoverflow.com/questions/56098067/naive-prediction-using-pandas

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.