Javascript Array Find And Replace Function In Pandas