def _scale_history(history):
  """Internal function to return a scaled history. 
  
  Parameters
  ----------
  history: 
  
  Returns
  -------
  The history pd dataframe with standardized actuals column appended"""
 
  history['actual_scaled'] = ((history['actual'] - history['actual'].mean())
                              / history['actual'].std())
  return history