Your Child
Singapore Weather Trends
Coded on 15 Mar 2022
Data updated on 14 Aug 2022


In this project, we use histoical rainfall and temperature data from the National Environment Agency since 1990 to look for evidence of global warming and seasonal changes in rainfall.


Commentary / Analysis:
We used string slicing and the datetime library to convert strings containing dates into datetime variables. Then combined 2 data sets temperature and rainfall into a single dataframe.
Python Code:


Image Name
Commentary / Analysis:
Singapore's average temperature has increased from 26.2 degress to 28.1 degrees from 1990 to 2022. This is an increase of 1.9 degrees over 32 years or an average increase of 0.06 degrees per year. Using a 12 month moving average, we smooth out the data and see longer term trends more clearly.
Python Code:


Image Name
Commentary / Analysis:
Singapore experience seasonal temperature changes through the year. Singapore is warmest during May to July and coolest in December to January. The temperature difference could be as big as 3 degrees.
Python Code:


Image Name
Commentary / Analysis:
January and December tends to be the most rainy months of the year. 2021 January was also exceptionally rainy
Python Code:


Image Name
Commentary / Analysis:
There is a negative correlation between temperature and rainfall. Generally, the less rainfall, the warmer the temperature.
Python Code:




At The Logic Coders students learn to code in a fun dynamic environment, through real-world experiences.
Our students don't just learn coding, they develop critical skills in logical thinking by identifying and solving problems.

WhatsApp us at 90409944
City Square Mall #06-05
Parkway Centre #13-07
www.thelogiccoders.com.sg