'Insert one or more rows at the given row position.
Examples
>>> from sympy import zeros, ones
>>> M = zeros(3)
>>> V = ones(1, 3)
>>> M.row_insert(1, V)
Matrix([
[0, 0, 0],
[1, 1, 1],
[0, 0, 0],
[0, 0, 0]])
See Also
row
col_insert'

def row_insert(self, pos, other):

    from sympy.matrices import MutableMatrix
    if (not self):
        return self._new(other)
    if (pos < 0):
        pos = (self.rows + pos)
    if (pos < 0):
        pos = 0
    elif (pos > self.rows):
        pos = self.rows
    if (self.cols != other.cols):
        raise ShapeError('`self`    and    `other`    must    have    the    same    number    of    columns.')
    return self._eval_row_insert(pos, other)
