remove a row in python code example Example 1: drop columns pandas df.drop(columns=['B', 'C']) Example 2: remove 0th row pandas df1 = df.iloc[1:]