Python Insert Array Into Dataframe To String Function In Php