'Stats should not fail when trying to calculate mean on sparse data.
GH-2357'

def test_stats_sparse(self):

    data = Table('iris')
    sparse_x = sp.csr_matrix(data.X)
    self.assertTrue((stats(data.X).all() == stats(sparse_x).all()))
