mwaskom/seaborn — pull request #85 by mwaskom (2014-01-15 05:53:09+00:00)
Title: Improve kde computation and (re)-add scipy KDE

This addresses several issues with the distribution plots

- The statsmodels density estimate fails on data that isn't double-typed
- The density estimate can become slightly negative (probably due to the FFT-based computation statsmodels uses)

These problems are detailed in #78 and are fixed here.

Additionally, kde data gets passed down to the computation functions as arrays instead of series (addressing #58, although I think that's actually a statsmodels problem)

This fix also changes the default `distplot` bin computation slightly by taking the ceiling of the bin number estimate.

This also adds scipy-based kde computation back, paving the way for making statsmodels an optional dependency.