def col(matlist, i):
    matcol = [list(l) for l in zip(*matlist)]
    return [[l] for l in matcol[i]]
Returns the ith column of a matrix
dataset/ETHPy150Open sympy/sympy/sympy/matrices/densetools.py/col