I have a pandas dataframe with the heat production of 300 devices mapped on the outside tempearture which looks like this:
I now want to do a linear regression (y= ß0+ ß1*x1) on all 300 heatig_devices for the temperature range 2 to 3.5. So that x is the outside temperature and y is the heating_device output And at the end I would like to have for every heating device a regression cefficient ß1. Whats the best way to do so ?