Write a program that reads in the file climate_data_2017_numeric.csv and prompts the user to enter the name of a field (other than Date), and then outputs the highest and lowest values recorded in that field for the month of August.The file climate_data_2017_numeric.csv contains the following fields:Date
Minimum temperature (C)
Maximum temperature (C)
Rainfall (mm)
Speed of maximum wind gust (km/h)
9am Temperature (C)
9am relative humidity (%)
3pm Temperature (C)
3pm relative humidity (%)
Your program should work like this:Maximum temperature (C)
Available field names:
Minimum temperature (C)
Maximum temperature (C)
Rainfall (mm)
Speed of maximum wind gust (km/h)
9am Temperature (C)
9am relative humidity (%)
3pm Temperature (C)
3pm relative humidity (%)
Please enter a field name: Minimum temperature (C)
Statistics for field ‘Minimum temperature (C)’:
Min: 1.0 Max: 14.6
Customer: python
Within the next two days my data set looks like this :
Date,Minimum temperature (C),Maximum temperature (C),Rainfall (mm),Speed of maximum wind gust (km/h),9am Temperature (C),9am relative humidity (%),3pm Temperature (C),3pm relative humidity (%)
2017-06-01,8.0,18.3,0,43,10.3,54,17.8,39
2017-06-01,7.4,23.3,0,24,12.1,80,22.5,55
2017-06-01,7.9,13.9,0.4,20,10.5,82,13.6,57
2017-06-02,8.0,14.7,0,20,10.6,64,13.3,69
2017-06-02,8.3,24.2,0,30,14.7,78,22.5,57
2017-06-02,8.5,18.1,0,41,10.7,61,16.4,50
2017-06-03,9.1,23.1,0,28,14.7,86,22.9,57
2017-06-03,9.9,14.3,0,19,10.8,76,13.1,73
2017-06-03,10.7,17.4,0,41,13.4,64,16.4,66
2017-06-04,4.4,15.8,0,13,5.7,100,15.5,53
2017-06-04,10.5,19.7,1.4,28,12.2,77,19.0,57
2017-06-04,12.8,22.6,0,31,16.3,77,22.5,52
2017-06-05,5.6,17.5,0,28,8.7,82,16.8,57
2017-06-05,10.1,25.3,0,31,15.0,71,24.9,30
2017-06-05,9.4,19.6,0,28,11.5,78,19.2,41
2017-06-06,8.7,13.9,6.4,43,11.8,78,12.6,68
2017-06-06,9.2,25.2,0,41,17.9,38,24.5,13
2017-06-06,9.1,17.9,0,59,11.2,58,14.7,43
2017-06-07,5.9,14.3,0,28,8.3,91,14.0,54
2017-06-07,8.8,15.5,54.6,56,13.3,82,14.2,85
2017-06-07,5.0,22.8,0,31,12.4,68,22.5,39
2017-06-08,9.9,22.5,0,48,13.0,75,22.1,25
2017-06-08,3.6,15.0,0,30,6.6,86,14.0,56
2017-06-08,12.4,18.1,61.0,44,13.3,91,16.9,84
2017-06-09,10.4,18.9,3.4,52,12.5,90,18.2,64
2017-06-09,6.6,15.0,1.8,22,11.0,98,13.9,66
Leave a reply