Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Filename: nola_v1.py Also submit: A screenshot (or download) of your plot Input files: Download nola weather feb.csv and save it in the same directory as

image text in transcribed
image text in transcribed
Filename: nola_v1.py Also submit: A screenshot (or download) of your plot Input files: Download nola weather feb.csv and save it in the same directory as your nola_v1.py file Mardi Gras is coming up! It's one of Laney's favorite holidays, but before she plans a trip back to New Orleans to celebrate it, she wants to check on the weather patterns. Is it usually too hot, too cold, or fine? Let's find out! The input data file contains the high, low, and mean temps (and humidity) on Mardi Gras Tuesday going back to 1922. For this problem, create a plot showing three things: - All the high temps with year as the x-value and its temp as the y-value - All the low temps, on the same scatterplot but a different color than the highs - The year and temp when the high temp was the highest (in our solution, we plotted all the highs and lows first, then plotted this one data point in a bigger, brighter X so it stands out) For full credit, your program must: - Create three lists: years, high temps, and low temps (all ints) - Find the year and temp when the high temp was highest - Create a plot as described above that includes a legend, title, labels, etc. as usual - Put your own xticks on your plot that are readable and clear. This might be a little tricky! Try something like this: - Create a list of positions in 5-step or 10-step increments, so it would look like pos =[0,5, 10,15,] - Create a list of every 5 th or every 10 th year from the file, so it would look like years = [1922,1927,1932,] After creating your plot, call plt.xticks(pos, years) If it still looks too crowded, try a rotation, like plt.xticks(pos, years, rotation = 45) Consider using what you know about range and list comprehension to make this all work! maln vanndlan tin

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design For Mere Mortals

Authors: Michael J Hernandez

4th Edition

978-0136788041

More Books

Students also viewed these Databases questions

Question

Understand the role of employer branding in talent management.

Answered: 1 week ago