drop colums in pd code example Example 1: drop columns pandas df.drop(columns=['B', 'C']) Example 2: drop column dataframe df.drop(columns=['Unnamed: 0'])