Tennis Ace

https://www.codecademy.com/practice/projects/tennis-ace

In the two feature linear regressions, I decided to twist a little bit and added 3 features to X.
And grab the latest year for each player. However, when I try to replicate your steps, my model_c around lines 76-97. X and Y are not becoming the same shapes, unless… I added 2 more ‘Winnings’ to line 78. But I obviously did not want to do that since I saw in your example and everyone else’s that they can get away with one ‘Winnings’.

I’m not sure what I’m doing wrong, and I spent a few days on this project just to get a handle on LinearRegressions(). I really just want to get this done and move on to the next Lesson in Machine Learning but I feel like I would need to debug this first otherwise I would miss a few key lessons from this.

Code: https://hasteb.in/zulukike.py