drop duplicated rows pandas code example
Example 1: drop duplicate index pandas
df3 = df3[~df3.index.duplicated(keep='first')]
Example 2: df remove duplicate rows
df = df.drop_duplicates()
p
df3 = df3[~df3.index.duplicated(keep='first')]
df = df.drop_duplicates()
p