how to drop unique pair of values in pandas dataframe code example
Example 1: number of unique pairs in columns pandas
#df named df1 columns A and B
df1.groupby(['A','B']).size().reset_index().rename(columns={0:'count'})
Example 2: dataframe python unique values rows
# get the unique values (rows)
df.drop_duplicates()