Python Dataframe Into Array Methods In Typescript Vs React