I want to forecast the intermittent demand values. For that I want the following outputs:
1. non-zero elements values(q)
2. inter arrival time between two non-zero elements(a)
For example, my data is like this [type:series]
1,2,0,0,3,3,0,1,0,0,2,0,0,0,0,4,0,0
and I want output like this and it should be in pandas data frame format.
q a
1 1
2 1
3 3
3 1
1 2
2 3
4 4
I tried some of the codes but I didn't get the proper output.
Can anyone help me to solve this?