pandas select distinct from one column but display other columns code example
Example: Returns a new DataFrame containing the distinct rows in this DataFrame
# Returns a new DataFrame containing the distinct rows in this DataFrame
df.ditinct().count()
# 2