affine commited on
Commit
7041ff3
·
verified ·
1 Parent(s): 10320be

Update pages/2_Energy Demand Forecasting.py

Browse files
pages/2_Energy Demand Forecasting.py CHANGED
@@ -355,10 +355,15 @@ elif option=='Prophet':
355
  </h2>
356
  </div>
357
  """, unsafe_allow_html=True)
358
- y_train_true['y']=y_train_true['y'].astype('float')
359
- # y_train_pred['yhat']=y_train_pred['yhat'].astype('float')
360
- y_test_true['y']=y_test_true['y'].astype('float')
361
- y_test_pred['yhat']=y_test_pred['yhat'].astype('float')
 
 
 
 
 
362
 
363
  fig = go.Figure([
364
  # go.Scatter(x=y_train_true['ds'],y=y_train_true['y'],name='Train Observed',line=dict(color='blue')),
 
355
  </h2>
356
  </div>
357
  """, unsafe_allow_html=True)
358
+ # y_train_true['y']=y_train_true['y'].astype('float')
359
+ # # y_train_pred['yhat']=y_train_pred['yhat'].astype('float')
360
+ # y_test_true['y']=y_test_true['y'].astype('float')
361
+ # y_test_pred['yhat']=y_test_pred['yhat'].astype('float')
362
+ y_train_true.loc[:, 'y'] = y_train_true['y'].astype('float')
363
+ # y_train_pred.loc[:, 'yhat'] = y_train_pred['yhat'].astype('float')
364
+ y_test_true.loc[:, 'y'] = y_test_true['y'].astype('float')
365
+ y_test_pred.loc[:, 'yhat'] = y_test_pred['yhat'].astype('float')
366
+
367
 
368
  fig = go.Figure([
369
  # go.Scatter(x=y_train_true['ds'],y=y_train_true['y'],name='Train Observed',line=dict(color='blue')),