pandas dataframe get unique rows by 1 column value code example
Example: distinct rows in this DataFrame
# distinct rows in this DataFrame
df.distinct().count()
# 2
# distinct rows in this DataFrame
df.distinct().count()
# 2