Simple prediction using linear regression with python
问题 data2 = pd.DataFrame(data1['kwh']) data2 kwh date 2012-04-12 14:56:50 1.256400 2012-04-12 15:11:55 1.430750 2012-04-12 15:27:01 1.369910 2012-04-12 15:42:06 1.359350 2012-04-12 15:57:10 1.305680 2012-04-12 16:12:10 1.287750 2012-04-12 16:27:14 1.245970 2012-04-12 16:42:19 1.282280 2012-04-12 16:57:24 1.365710 2012-04-12 17:12:28 1.320130 2012-04-12 17:27:33 1.354890 2012-04-12 17:42:37 1.343680 2012-04-12 17:57:41 1.314220 2012-04-12 18:12:44 1.311970 2012-04-12 18:27:46 1.338980 2012-04-12