Closed shenxiangzhuang closed 3 years ago
The differencing is done using :
pd.DataFrame(np.log(df.Value).diff().diff(12))
So if the differencing was just shift(1), you'd add only the shift(1).value (This was the value that was removed) But now that we are differencing twice, you have to add the shift(1), then the shift(1) shifted by 12.
Sorry for my late reply, and I try to figure out the transformation by these equations as fellows, which I think may help others in a way~
Hello Jinit, I have read your awesome code in this repo and the article in medium which helps me a lot and thank you for your work. But I can not grasp the key idea about the way of Un-differencing the data. Could you please explain the code with more details?