[Python] how to compare two datafram and retrieve only the extre rows using pandas [duplicate]

Discussão em 'Python' iniciado por Stack, Janeiro 30, 2025.

  1. Stack

    Stack Membro Participativo

    I have a usecase where I have two dfs :

    the first df1 :

    [​IMG]

    the second df2 :

    [​IMG]

    what I'm trying to do is to compare df1 and df2 and get only the row which are in df1 and does not exist in df2 which in this usecase :

    [​IMG]

    could you help please how to achieve this with Pandas ?

    Continue reading...

Compartilhe esta Página