remove one column in pandas code example Example 1: drop a column from dataframe df = df.drop('column_name', 1) Example 2: dataframe delete row df.drop(df.index[2])