Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Download the nycflights 1 3 _ weather.csv . gz data file from our unit site ( Learning Resources - > Data ) . It gives
Download the nycflightsweather.csvgz data file from our unit site Learning Resources Data
It gives the hourly meteorological data for three airports in New York: LGA, JFK and EWR for the whole
year of The columns are:
origin weather station: LGA, JFK or EWR,
year, month, day, hour time of recording,
temp, dewp temperature and dew point in degrees Fahrenheit,
humid relative humidity,
winddir, windspeed, windgust wind direction in degrees speed and gust speed in mph
precip precipitation, in inches,
pressure sea level pressure in millibars,
visib visibility in miles,
timehour date and hour based on the year, month, day, hour fields formatted as YYYYmmdd
HH:MM:SS actually YYYYmmdd HH:: However, due to a bug in the dataset, the data in this
column are incorrectly shifted by hour. Do not rely on it unless you manually correct it
Then, create a single JupyterIPython notebook see the Artefacts section below for all the requirements
where you perform what follows.
Convert all columns so that they use metric International System of Units, SI or derived units:
temp and dewp to Celsius, precip to millimetres, visib to metres, as well as windspeed and
windgust to metres per second. Replace the data inplace overwrite existing columns with new
ones
Compute daily mean wind speeds for the LGA airport ~ total speed values, for each day separately;
you can, for example, group the data by year, month, and day at the same time
Present the daily mean wind speeds at LGA ~ aforementioned data points in a single plot, eg
using the matplotlib.pyplot.plot function. The xaxis labels should be humanreadable and
intuitive eg month names or dates Reference result:
day
daily average wind speed ms at LGA
Identify the ten windiest days at LGA dates and the corresponding mean daily wind speeds
Reference result:
## windspeed
## date
##
##
##
##
##
##
##
##
##
##
Compute the monthly mean wind speeds for all the three airports.
There is one obvious outlier amongst the observed wind speeds. Locate it programmatically do
not hardcode the datedayrow number and replace it with npnan NaN before computing the
means.
Draw the monthly mean wind speeds for the three airports on the same plot three curves of different
colours Add a readable legend. Reference result:
month
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