I have a numpy array with data that have two states either "0" or "1" - for three days (3 rows).
Something like that:
data=np.array([[0, 0, 1, 1, 1, 0, 0, 1], [0,1, 1, 1, 0, 0, 0, 0], [0,1, 1, 0, 0, 0, 0, 0]])
As these are timeseries for 7 timesteps I would like to create a transition matrix a with size A [27 x 27].
The question is: Is there any library that creates the transition matrix? I found a relevant question but doesn't help much. I am asking because I will have multiple timeseries so to compute the matrix manually will be impossible.
Thanks in advance