dropping a column from a dataframe python code example Example: drop a column pandas df.drop(['column_1', 'Column_2'], axis = 1, inplace = True)