get distinct column values pandas code example
Example 1: distinct rows in this DataFrame
# distinct rows in this DataFrame
df.distinct().count()
# 2
Example 2: pandas distinct
>gapminder['continent'].unique()
array(['Asia', 'Europe', 'Africa', 'Americas', 'Oceania'], dtype=object)