'How would one use a RNN when predicting temperature?

Let's assume I have a dataframe with several features, like humidity, pressure, and so on. One of these columns, would be temperature.

At each row, I have the data for one day. I would like to predict the temperature for the next day, with past data only.

How would I shape the dataframe so that it could be used in a RNN with Keras?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source