remove duplicate dataframe python code example
Example 1: remove duplicate row in df
df = df.drop_duplicates()
Example 2: remove duplicate columns python dataframe
df = df.loc[:,~df.columns.duplicated()]
Example 3: df remove duplicate rows
df = df.drop_duplicates()
p