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