how to get unique values in pandas dataframe column code example
Example 1: unique values in dataframe colume
df['Column_name'].value_counts()
Example 2: dataframe python unique values rows
# get the unique values (rows)
df.drop_duplicates()
df['Column_name'].value_counts()
# get the unique values (rows)
df.drop_duplicates()