how to remove a column in dataframe in python code example Example: df drop column df = df.drop(['B', 'C'], axis=1)