drop coumn in pandas code example Example 1: how to delete a column from a dataframe in python del df['column'] Example 2: dataframe delete row df.drop(df.index[2])