Exercise 6: Simple Linear Regression
Add the ‘idx’ column to df_bur13
df_bur13 is the wrong DataFrame, it should be df_bur13_chl as confirmed in the Hint: “To create the values for the new idx column, you can use the function range(). Remember you need as many values as there are rows in df_bur13_chl"
This causes unnecessary confusion and time wasted.
- The Expected output regression results are different and will not match the output we get because our DF
df_bur13_chlcontains 3009 observations forCHL_QA_AVG, whereas the Expected output contains3026(you must’ve used a different dataframe/dataset than the assignment one).
This causes unnecessary confusion and time wasted trying to figure out what’s wrong with my code, when it’s your output that holds the discrepancy (confirmed by later Exercise 7’s Expected output for results_multi that contains 3009 observations).