distinct value from a column in pandas code example
Example 1: distinct rows in this DataFrame
# distinct rows in this DataFrame
df.distinct().count()
# 2
Example 2: unique values in dataframe column
#List unique values in the df['name'] column
df.name.unique()