how to update the whole existing row in pandas code example Example: python dataframe update if not new row pd.concat([df1[~df1.index.isin(df2.index)], df2])