pandas dataframe remove row with condition code example
Example 1: remove 0th row pandas
df1 = df.iloc[1:]
Example 2: delete rows based on condition python
df.drop(df[df.score < 50].index, inplace=True)
df1 = df.iloc[1:]
df.drop(df[df.score < 50].index, inplace=True)