Print command not working

As shown in the course - while calculating hedge ratio 



Print ' Hedge Ratio =',model.params[0]



Please help

Try using this command:

Print (' Hedge Ratio =',model.params[0] )



If you still get the error, please send the screenshot of that.

I M GETTING THIS ERROR NOW



image.png

Can You kindly help with the above problem . Also I am using Python 3 .I hope thats ok. 

Not able to see the image. I think it's not uploaded correctly.



Could you please share the data and code file to debug the error at quantra@quantinsti.com. Thanks!

SENT THE SCREENSHOT IN THE MAIL ID . PLEASE CHECK .THANK YOU 

Thanks. Please also send data and code files.

Sent . Please Check .

Hi Rahul,



These are some of the issues in your code:

  1. The input contained missing (NaN) values which caused the model to break
  2. The output of model.fit() was stored in results, so you have to call results.params and not on model.
  3. P should be small in print



    You will receive or have received the updated notebook. Thanks!