If you are facing error while accessing YAHOO api , please do the following in your colab notebook :
!pip install --upgrade pandas-datareader
!pip install --upgrade pandas
and restart your run time , and it will solve that issue.
Schematically, a RNN layer uses a for loop to iterate over the timesteps of a sequence, while maintaining an internal state that encodes information about the timesteps it has seen so far.
Here is a simple example of a Sequential model that processes sequences of float data, embeds each float data into a (60,1)-dimensional vector, then processes the sequence of vectors using LSTM/GRU layers.