[Python] Dataframe convert header row to row pandas

Discussão em 'Python' iniciado por Stack, Setembro 24, 2021.

  1. Stack

    Stack Membro Participativo

    have a df with values

    df:

    165 156 1 test greater 56gsa
    -------------------------------------
    spin 201 2 normal lesser 12asgs
    pine 202 3 fast greater 5sasgs



    required output:

    0 1 2 3 4 5
    -------------------------------------
    165 156 1 test greater 56gsa
    spin 201 2 normal lesser 12asgs
    pine 202 3 fast greater 5sasgs

    Continue reading...

Compartilhe esta Página