TypeError: float() argument must be a string or a number, not 'method' - Multiple variable regression
问题 I've been getting the error: TypeError: float() argument must be a string or a number, not 'method'. Below is my snippet of code. I've checked other posts like this one: TypeError: float() argument must be a string or a number, not 'function' – Python/Sklearn but can't seem to get to the root cause of the error. Is python saying that my variables (y, x1, x2 etc.) are 'methods' which is why I'm receiving the error? If so, does anyone know how I can resolve this? Thanks in advance to anyone