Answers for "python find unique values in list of tuples"

3

get list of unique values in pandas column

a = df['column name'].unique() #returns a list of unique values
Posted by: Guest on March-29-2021
0

count unique values in python

words = ['a', 'b', 'c', 'a']
unique_words = set(words)             # == set(['a', 'b', 'c'])
unique_word_count = len(unique_words) # == 3
Posted by: Guest on September-28-2020

Code answers related to "python find unique values in list of tuples"

Python Answers by Framework

Browse Popular Code Answers by Language