how to drop a row pandas code example Example 1: drop a column from dataframe df = df.drop('column_name', 1) Example 2: remove 0th row pandas df1 = df.iloc[1:]