Replace Function Python Dataframe Group By Multiple Columns