Typescript Array Remove Duplicates Python Dataframe To Numpy