[Python] python panda get column name with return carriage

Discussão em 'Python' iniciado por Stack, Outubro 2, 2024.

  1. Stack

    Stack Membro Participativo

    data = {'Nom du collaborateur': ['Robert Lewandowski']}
    df = pd.DataFrame(data)
    df


    the column name displayed is "nom du collaborateur" on one line. I would like to display it on two line. first line "Nom du" and second line "Collaborateur" many thanks in advance kind regards CPDSO

    Continue reading...

Compartilhe esta Página