You can be more explicit with `sp.issparse(X)`.