CSV update and spline_smooth method for non linear regression