Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

16-1. Sitka Rainfall: Sitka is in a temperate rainforest, so it gets a fair amount of rainfall. In the data file sitka_weather_2018_simple.csv is a header calledPRCP, which represents daily rainfall...

1 answer below »

16-1. Sitka Rainfall:Sitka is in a temperate rainforest, so it gets a fair amount of rainfall. In the data filesitka_weather_2018_simple.csvis a header calledPRCP, which represents daily rainfall amounts. Make a visualization focusing on the data in this column. You can repeat the exercise for Death Valley if you’re curious how little rainfall occurs in a desert.

16-2. Sitka–Death Valley Comparison:The temperature scales on the Sitka and Death Valley graphs reflect the different data ranges. To accurately compare the temperature range in Sitka to that of Death Valley, you need identical scales on the y-axis. Change the settings for the y-axis on both of the charts produced by sitka_highs_lows_1.pyand death_valley_highs_lows_2.py such that all temperatures are displayed. Make sure the label for both graphs gives the location (Death Valley, CA and Sitka Forest). Fix font size such that text is not clipped. Name these programs 16-2a.py and 16-2b.py.

16-4. Automatic Indexes:Starting with the program from 16-2 which processes Death Valley data, modify the program such that it sets the temperature ranges based on the data contained in the file. Allow for the graph to display 10 degrees above the highest max and 10 degrees below the lowest minimum temperature.Use the station name to automatically generate an appropriate title for your graph as well.

16-5. Automatic Indexes II:Starting with the program in 16-4, modify the program such that it can detect the indices of the rows containing the high and low temperatures. Our objective is to allow the program to display min and max temperatures for either Death Valley or the Sitka Forest. Develop a small routine called get_temp_indices() which accepts the header_row and returns a tuple containing the indices of high and low temperatures for the file being processed. Use these indices to read the data. Test the program with both the Death Valley and Sitka Forest input file.

16-7. Automated Title:In eq_world_map_3.py, we specified the title manually when definingmy_layout, which means we have to remember to update the title every time the source file changes. Instead, you can use the title for the data set in the metadata part of the JSON file. Pull this value, assign it to a variable, and use this for the title of the map when you’re definingmy_layout.

16-8. Covid-19 Deaths in CA:Use the attached file, deathsbystateovertime,json, to create a bar chart visualization of the total covid-19 deaths in the state of California over time.

Hints: The file is organized with many rows of data for each of the states and territories in the United States. You can see this in row 9. The first state is Colorado with state abbreviation CO. All of the CO data is listed in order of date, then comes all the data for Florida (FL), then Arizona (AZ), etc. Total deaths are in row 15 and the date is in row 8.
This file was obtained fromhttps://catalog.data.gov/dataset/https-data-cdc-gov-data-json. Once you have your program working, go to this site and look at the data. It appears that the data format has been changed so updating the file will require program changes. If you are ambitious, you can download other data files and get good at parsing data in files. This would be good practice for the final.




Here's the solution code for most of the Assignment.

Answered 354 days After Dec 06, 2021

Solution

Baljit answered on Nov 26 2022
45 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here