remove rows with condition in pythonn code example Example: delete rows based on condition python df.drop(df[df.score < 50].index, inplace=True)