Here is link of blog where you can find out all steps.
Stock Price Prediction Using Artificial Recurrent Neural Network — Part 1
Stock Price Prediction Using Artificial Recurrent Neural Network — Part 2
Note: Please check data (in this case AAPL.csv) size using df.info. its size must be more than 3000 entries. If data(in this case AAPL.csv) is less than 3000 then you have to change time_step size less than 100 like (30,40,or 50) in program as show in figure K.