[Python] How to merge two dataframes row wise in pandas

Discussão em 'Python' iniciado por Stack, Maio 16, 2025.

  1. Stack

    Stack Membro Participativo

    I want to concatenate my two dataframes (df1 and df2) row wise to obtain dataframe (df3) in below format:

    1. 1st row of df3 have 1st row of df1.
    2. 2nd row of df3 have 1st row of df2.
    3. 3rd row of df3 have 2nd row of df1.
    4. 4th row of df3 have 2nd row of df2.

    ... and so on

    Any idea how can I do that?

    Note- both dataframes have same column names

    Continue reading...

Compartilhe esta Página