Closed carlshan closed 9 years ago
IMO to the extent that this is a bug, it's a bug in statsmodels. Seaborn delegates all of the lowess fit/predict logic to their functions, so the code there is in a much better position to know whether or not the data can be used with a lowess fit and respond (with a warning, exception, or otherwise) appropriately.
Gotcha. Thanks @mwaskom. I've submitted this issue to Statsmodels: https://github.com/statsmodels/statsmodels/issues/2449
Seaborn version: 0.5.1 iPython version: 3.0.0 Issue: when the # of unique values in X is less than the number of unique neighbors needed to compute LOWESS, no LOWESS curve is plotted and no error is given. Expected behavior: a warning should be raised that LOWESS cannot be plotted due to lack of sufficient unique neighbors.
(Workaround: you could jitter all the x values by some epsilon to create more unique values, and then rerun sns.regplot().)