duplicate df pandas code example
Example 1: dataframe copy
new_dataframe = dataframe.copy(deep = True)
Example 2: python - show repeted values in a column
df = df[df.duplicated(subset=['val1','val2'], keep=False)]
new_dataframe = dataframe.copy(deep = True)
df = df[df.duplicated(subset=['val1','val2'], keep=False)]