df_1.compare(df_2, align_axis=0, keep_equal=True).rename(index={\'self\': \'Prev\', \'other\': \'New\'}, level=1) df_1 = {\'budget_id\':[\'1\', \'2\', \'3\', \'4\'],