python drop rows based on condition code example Example: delete rows based on condition python df = df.drop(df[df.score < 50].index)