Python Replace Characters In Dataframe Groupby