Question
Use python for this question. This link is a data file about New York City's weather from 1989 to 2018. Please draw a plot showing
Use python for this question.
This link is a data file about New York City's weather from 1989 to 2018. Please draw a plot showing the monthly averages of daily maximum temperatures and mimimum tempatures of 2017, and the similar averages for years 1990 through 2016 considered together, using the following columns: DATE, TMAX, and TMIN. All the other fields should be ignored. Also notice that the file includes data from a weather station in Central Park and another in JFK Aiport. You need the column STATION or NAME to differenciate between the two parts. Only consider the Central Park data.
To be more specific, you need to plot four sequences: high for 2017, low for 2017, high for 1990-2016 together, and low for 1990-2016 together. Each sequence is 12 numbers, i.e. average for January, average for February, ..., and average for December. You can show all four sequences on one plot; or you can have two plots, one for maximum temperatures and another for minimum temperatures.
Following are some parts of data:
"STATION","NAME","LATITUDE","LONGITUDE","ELEVATION","DATE","TAVG","TAVG_ATTRIBUTES","TMAX","TMAX_ATTRIBUTES","TMIN","TMIN_ATTRIBUTES" "USW00094728","NY CITY CENTRAL PARK, NY US","40.77898","-73.96925","42.7","1989-01-01",,,"36",",,0","32",",,0" "USW00094728","NY CITY CENTRAL PARK, NY US","40.77898","-73.96925","42.7","1989-01-02",,,"44",",,0","35",",,0" "USW00094728","NY CITY CENTRAL PARK, NY US","40.77898","-73.96925","42.7","1989-01-03",,,"40",",,0","29",",,0" "USW00094728","NY CITY CENTRAL PARK, NY US","40.77898","-73.96925","42.7","1989-01-04",,,"29",",,0","11",",,0" "USW00094728","NY CITY CENTRAL PARK, NY US","40.77898","-73.96925","42.7","1989-01-05",,,"26",",,0","11",",,0" "USW00094728","NY CITY CENTRAL PARK, NY US","40.77898","-73.96925","42.7","1989-01-06",,,"26",",,0","21",",,0" "USW00094728","NY CITY CENTRAL PARK, NY US","40.77898","-73.96925","42.7","1989-01-07",,,"35",",,0","26",",,0" "USW00094728","NY CITY CENTRAL PARK, NY US","40.77898","-73.96925","42.7","1989-01-08",,,"50",",,0","35",",,0" "USW00094728","NY CITY CENTRAL PARK, NY US","40.77898","-73.96925","42.7","1989-01-09",,,"45",",,0","33",",,0" "USW00094728","NY CITY CENTRAL PARK, NY US","40.77898","-73.96925","42.7","1989-01-10",,,"37",",,0","29",",,0" "USW00094728","NY CITY CENTRAL PARK, NY US","40.77898","-73.96925","42.7","1989-01-11",,,"43",",,0","32",",,0" "USW00094728","NY CITY CENTRAL PARK, NY US","40.77898","-73.96925","42.7","1989-01-12",,,"49",",,0","32",",,0" "USW00094728","NY CITY CENTRAL PARK, NY US","40.77898","-73.96925","42.7","1989-01-13",,,"44",",,0","29",",,0" "USW00094728","NY CITY CENTRAL PARK, NY US","40.77898","-73.96925","42.7","1989-01-14",,,"40",",,0","25",",,0" "USW00094728","NY CITY CENTRAL PARK, NY US","40.77898","-73.96925","42.7","1989-01-15",,,"48",",,0","37",",,0" "USW00094728","NY CITY CENTRAL PARK, NY US","40.77898","-73.96925","42.7","1989-01-16",,,"45",",,0","34",",,0" "USW00094728","NY CITY CENTRAL PARK, NY US","40.77898","-73.96925","42.7","1989-01-17",,,"49",",,0","34",",,0" "USW00094728","NY CITY CENTRAL PARK, NY US","40.77898","-73.96925","42.7","1989-01-18",,,"50",",,0","35",",,0" "USW00094728","NY CITY CENTRAL PARK, NY US","40.77898","-73.96925","42.7","1989-01-19",,,"49",",,0","40",",,0" "USW00094728","NY CITY CENTRAL PARK, NY US","40.77898","-73.96925","42.7","1989-01-20",,,"53",",,0","30",",,0" "USW00094728","NY CITY CENTRAL PARK, NY US","40.77898","-73.96925","42.7","1989-01-21",,,"30",",,0","15",",,0" "USW00094728","NY CITY CENTRAL PARK, NY US","40.77898","-73.96925","42.7","1989-01-22",,,"41",",,0","20",",,0" "USW00094728","NY CITY CENTRAL PARK, NY US","40.77898","-73.96925","42.7","1989-01-23",,,"51",",,0","32",",,0" "USW00094728","NY CITY CENTRAL PARK, NY US","40.77898","-73.96925","42.7","1989-01-24",,,"61",",,0","36",",,0" "USW00094728","NY CITY CENTRAL PARK, NY US","40.77898","-73.96925","42.7","1989-01-25",,,"47",",,0","35",",,0" "USW00094728","NY CITY CENTRAL PARK, NY US","40.77898","-73.96925","42.7","1989-01-26",,,"48",",,0","35",",,0" "USW00094728","NY CITY CENTRAL PARK, NY US","40.77898","-73.96925","42.7","1989-01-27",,,"46",",,0","37",",,0" "USW00094728","NY CITY CENTRAL PARK, NY US","40.77898","-73.96925","42.7","1989-01-28",,,"47",",,0","32",",,0" "USW00094728","NY CITY CENTRAL PARK, NY US","40.77898","-73.96925","42.7","1989-01-29",,,"52",",,0","39",",,0" "USW00094728","NY CITY CENTRAL PARK, NY US","40.77898","-73.96925","42.7","1989-01-30",,,"51",",,0","44",",,0" "USW00094728","NY CITY CENTRAL PARK, NY US","40.77898","-73.96925","42.7","1989-01-31",,,"52",",,0","38",",,0" "USW00094728","NY CITY CENTRAL PARK, NY US","40.77898","-73.96925","42.7","1989-02-01",,,"67",",,0","44",",,0" "USW00094728","NY CITY CENTRAL PARK, NY US","40.77898","-73.96925","42.7","1989-02-02",,,"57",",,0","38",",,0" "USW00094728","NY CITY CENTRAL PARK, NY US","40.77898","-73.96925","42.7","1989-02-03",,,"38",",,0","26",",,0" "USW00094728","NY CITY CENTRAL PARK, NY US","40.77898","-73.96925","42.7","1989-02-04",,,"31",",,0","22",",,0" "USW00094728","NY CITY CENTRAL PARK, NY US","40.77898","-73.96925","42.7","1989-02-05",,,"26",",,0","20",",,0"
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started