1>gapminder['continent'].unique()
2array(['Asia', 'Europe', 'Africa', 'Americas', 'Oceania'], dtype=object)
3
1import pandas as pd
2
3colors = {'color': ['green', 'blue', 'blue', 'red', 'green']}
4df = pd.DataFrame.from_dict(colors)
5
6print(df['color'].unique())
1df.groupby('param')['column'].nunique().sort_values(ascending=False).unique().tolist()
1# Returns a new DataFrame containing the distinct rows in this DataFrame
2
3df.ditinct().count()
4# 2