Numpy Python Mini Projects: Weather Data Analysis
If you want analyse the weather, then this is program. It uses the real world datasets with arrays. It combines indexing, masking to perform the process. Let us create a python program to implement weather data analysis. Implementation: It starts from including numpy object. Temperature data is collected from the user for a week. The average temperature for a week is calculated and printed. Next, minimum and maximum temperature is calculated using built-in functions. Hot days, cool days, rainy days are categorised by the temperature. Standard deviation is also calculated. Finally the weather report is displayed to the screen. Code: import numpy as np1 #Get the temperature inputs from the user temp = np1.array(list(map(int, input("Enter the weekly temperature separated by space: ").split()))) print("Temperature of the week",temp) #Average temperature,minimum,maximum temperature calculation ...