Rails Convert Array To String Python Replace Characters In Dataframe