code: def smooth_data(xdata, ydata, yerror, amount=1):
      
  
      new_xdata  = smooth_array(_n.array(xdata), amount)
      new_ydata  = smooth_array(_n.array(ydata), amount)
      if yerror is None:  new_yerror = None
      else:               new_yerror = smooth_array(_n.array(yerror), amount)
  
      return [new_xdata, new_ydata, new_yerror]
docs: Returns smoothed [xdata, ydata, yerror]. Does not destroy the input arrays.