drop a row from pandas dataframe code example Example 1: drop columns pandas df.drop(columns=['B', 'C']) Example 2: pandas dataframe delete column del df['column_name']