Extract Value From Dataframe Python, Using unique () method The unique () method returns a NumPy array.