Php Turn Array Into String Python Replace Characters In Dataframe