removing columns from pandas code example Example 1: drop columns pandas df.drop(columns=['B', 'C']) Example 2: df drop column df = df.drop(['B', 'C'], axis=1)