def capfirst(x):
    x = to_string(x).strip()
    if x:
        return x[0].upper() + x[1:].lower()
    else:
        return x
Permute the rows of the matrix with the given permutation.
dataset/ETHPy150Open quantmind/pulsar/pulsar/utils/html.py/capfirst--crossover with--dataset/ETHPy150Open sympy/sympy/sympy/matrices/matrices.py/MatrixBase.permuteFwd