Python | sympy.Matrix.col() method Last Updated : 12 Jun, 2019 Comments Improve Suggest changes Like Article Like Report With the help of sympy.Matrix().col() method, we can extract the columns of the matrix. Syntax : sympy.Matrix().col() Return : Return the col of a matrix. Example #1 : In the given example we can see that the sympy.Matrix.col() method is used to extract the columns of a matrix. Python3 1=1 # Import all the methods from sympy from sympy import * # use the col() method for matrix gfg_val = Matrix([[1, 2], [2, 1]]).col(1) print(gfg_val) Output : Matrix([[2], [1]]) Example #2 : Python3 1=1 from sympy import * # use the col() method for matrix gfg_val = Matrix([[1, 2], [2, 3], [23, 45]]).col(0) print(gfg_val) Output : Matrix([[1], [2], [23]]) Comment More infoAdvertise with us Next Article Python | sympy.Matrix.col() method J Jitender_1998 Follow Improve Article Tags : Python SymPy Practice Tags : python Similar Reads Python | sympy.Matrix.col_del() method With the help of sympy.Matrix.col_del() method, we can delete the columns of the matrix. Syntax : sympy.Matrix().col_del() Return : Return a new matrix. Example #1 : In the given example we can see that the sympy.Matrix.col_del() method is used to delete the column of a matrix and return a new matri 1 min read Python | sympy.Matrix() method With the help of sympy.Matrix() method, we can make, rearrange, extract the different rows and columns in a matrix which is created by sympy.Matrix() method. Syntax : sympy.Matrix() Return : Return a matrix.  Example #1 :In this example, we can see that by using sympy.Matrix() method, we can create 1 min read Python sympy | Matrix.columnspace() method With the help of sympy.Matrix().columnspace() method, we can find the Columnspace of a Matrix. Matrix().columnspace() returns a list of column vectors that span the columnspace of the matrix. Syntax: Matrix().columnspace() Returns: Returns a list of column vectors that span the columnspace of the ma 1 min read Python | sympy.Matrix.row_del() method With the help of sympy.Matrix.row_del() method, we can delete the rows of the matrix. Syntax : sympy.Matrix().row_del() Return : Return a new matrix. Example #1 : In the given example we can see that the sympy.Matrix.row_del() method is used to delete the row of a matrix and return a new matrix. Pyt 1 min read Python | sympy.Matrix.row() method With the help of sympy.Matrix.row() method, we can extract the rows of the matrix. Syntax : sympy.Matrix.row() Return : Return the row of a matrix. Example #1 : In the given example we can see that the sympy.Matrix().row() method is used to extract the rows of a matrix. Python3 1=1 # Import all the 1 min read Like