scipy.sparse.vstack

scipy.sparse.vstack(blocks, format=None, dtype=None)

Stack sparse matrices vertically (row wise)

Parameters:

blocks :

sequence of sparse matrices with compatible shapes

format : string

sparse format of the result (e.g. “csr”) by default an appropriate sparse matrix format is returned. This choice is subject to change.

Previous topic

scipy.sparse.hstack

Next topic

scipy.sparse.issparse

This Page

Quick search