#to drop rows based on certain condition in a column import pandas as pd df = df[df['column']!=1]
data = data.drop(data.index[1])