Typescript Extract Type From Array To Dataframe In Python