only unique value rows pandas code example
Example 1: pandas unique values in column
#List unique values in the df['name'] column
df.name.unique()
Example 2: dataframe number of unique rows
1
# get the unique values (rows) by retaining last row
2
df.drop_duplicates(keep='last')