Memory issues with creating simple regression model

Can you go into a little detail on this? You’re saying that reshaping y fixed the memory problem?