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