pandas dataframe drop index row code example Example 1: df drop column df = df.drop(['B', 'C'], axis=1) Example 2: dataframe delete row df.drop(df.index[2])