how to count unique records by two columns in set python code example
Example: python - count how many unique in a column
df['var_1'].nunique() # How many unque values are present in a variable
df['var_1'].nunique() # How many unque values are present in a variable