by using pandas, I'd like to find a way to replace some rows of df1 (outdated) with all rows of df2 (update of df1) based on column values (Date) + new possible rows df2 (part of the update) containing new dates under Date column.
Assumptions: Essentially, I'm talking about an incremental update of a dataframe that will happen periodically. E.g.:
- week0=df1
- week1: df1+df2(update)=df3
- week2: df3+df4(update)=df5
- week3: df5+df6(update)=df7
The columns are equal on both dataframes: date, name, surname, vendor, quantity
Any suggestion?