(x, to_sparse, dtype=None)
return x
Transform list of values to sparse/dense column array.
Transform list of values to sparse/dense column array.
Transform list of values to sparse / dense column array .
def _to_column(x, to_sparse, dtype=None):
        """Transform list of values to sparse/dense column array."""
        x = np.asarray(x, dtype=dtype).reshape(-1, 1)
        if to_sparse:
            x = sp.csc_matrix(x)
        return x
def _to_column ( x , to_sparse , dtype = None ) : x = np . asarray ( x , dtype = dtype ) . reshape ( - 1 , 1 ) if to_sparse : x = sp . csc_matrix ( x ) return x