HW 3

This assignment will use the same csv file as HW 2. StateYlyTempAndLocData.csv

Instructions:

  1. Download the csv file from the link above.
  2. Open up a Jupyter notebook. (To use a new notebook, you can again go here, click “Try Classic Notebook”, wait for page to load, then go to “File”, “New Notebook”, “Python 3”. You may however use the same notebook from the day 1 homework, as you will be doing similar plotting, but with some added data).
  3. In your empty notebook, go to “File”, then “Open”. This will take you to a new page with a directory of all files in your Binder. Select the “Upload” button in the right corner.
  4. Upload the csv file. It is now in your directory, and you can import data from it.
  5. Here’s the actual homework. Ideally, you’ll have already completed HW 2 before doing this one.
for i in state_data[3:]:
      if i != '':
          temps.append(float(i))
    temp_list.append(temps)
def fit_eq(x, m, b):
  return (m*x)+b

Answer

Script

Plot