how can I delete first two columns of a dataframe in pandas code example Example: python - remove columns with same name and keep first df1 = df.loc[:, ~df.columns.duplicated()]