df = df.drop(df[<some boolean condition>].index)df = df.drop(df[df.score < 50].index)df = df.drop(df[(df.score < 50) & (df.score > 20)].index) a_dataframe.drop(a_dataframe[a_dataframe.B > 3].index, inplace=True)# Filter all rows for which the player's # age is greater than or equal to 25 df_filtered = df[df['Age'] >= 25] # Print the new dataframe print(df_filtered.head(15) # Print the shape of the dataframe print(df_filtered.shape)