delete columns dynamically df code example Example 1: how to delete a column from a dataframe in python del df['column'] Example 2: pandas remove column del df['column_name']