pandas dataframe update and instert keep id code example Example: python dataframe update if not new row pd.concat([df1[~df1.index.isin(df2.index)], df2])