pandas drop rows that have sub columns code example Example: dataframe delete row df.drop(df.index[2])