C3M5 - Assignment Exercise 7

Hi,

I am trying to complete the assignment for C3M5, but in the multiple Linear regression for Exercise 7, i am getting an error that the “idx” column is not in the dataframe and I am not able to proceed on this.

Please let me know if I am missing something in this.

Thanks & Regards

Ranjith

@Ranjith_Manuel

share screenshot of complete error, if the error is too lengthy then take two separate screenshot and post it.

As far now there is issue with how you’re indexing, it seems there is key attribute which you were suppose to use for indexing and you have used [‘idx’] which is not right key attribute in the index.

1 Like

This should be related to chrollophyl assignment, correct? Possibly issue is with predictors_multi. Did you correctly add column idx in previous EX 06?

1 Like

Thank you for the responses, I was able to correct the predictors in the add_constant. Now I am able to proceed and complete.

2 Likes