remove colums pandas code example Example 1: drop column dataframe df.drop(columns=['Unnamed: 0']) Example 2: dataframe delete row df.drop(df.index[2])