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