Fix lowess for constant inputs.

Fix with tests for #1798.
If the data are easy to create within python (using np.arange and np.zeros), then we don't really need a csv.