Question
Part 3 Create a .csv file (20 points) Start a new program temp_win3.py from your working version of temp_win2.py. For the last programming step we
Part 3 Create a .csv file (20 points)
Start a new program temp_win3.py from your working version of temp_win2.py.
For the last programming step we will output a valid .csv file. Change your program so that instead of printing the values to the screen it instead writes them to an output file and includes a simple one line header. For simplicity we will always call the output file moving_ave.csv After you have done this, the output in the file moving_ave.csv for NorCal-1880-2018.csv and k=60 should look like this:
Year,Value 1940,-0.2331 1941,-0.2169 1942,-0.2150 1943,-0.2228 ... 1955,-0.1580 1956,-0.1420 1957,-0.1101 1958,-0.1017
Submit the completed program to gradescope as temp_win3.py
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