The following code imports the quantecon library and creates a discrete approximation to an AR(1) process
from quantecon import approx_markov
print(states)