Python Dataframe Replace Substring Sql